Skip to content

Commit 055883d

Browse files
committed
spread the word(list)
1 parent 81e3b84 commit 055883d

File tree

6 files changed

+5
-3
lines changed

6 files changed

+5
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-added-large-files
9-
exclude: src/blacksquare/word_list.npz
9+
exclude: src/blacksquare/spreadthewordlist.npz
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
1111
rev: v0.6.8
1212
hooks:

LICENSE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
77
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
88

99
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10+
11+
The MIT License applies to all files in this software package, except for the file spreadthewordlist.npz, which is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ScoredWord(word='MACDUFF', score=25.387070408819042)
107107
```
108108

109109

110-
Custom word lists are supported and can be passed into the `Crossword` constructor or any of the solving methods. The default word list used is the [Crossword Nexus Collaborative Word List](https://github.com/Crossword-Nexus/collaborative-word-list).
110+
Custom word lists are supported and can be passed into the `Crossword` constructor or any of the solving methods. The default word list used is from [spread the word(list)](https://www.spreadthewordlist.com/). (Please note that the word list carries a [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en) license.)
111111

112112
## Example: full symmetry puzzles
113113
As an example of how blacksquare's abstractions allow for non-trivial crossword construction, consider the [June 6 2023 NYT puzzle](https://www.xwordinfo.com/Crossword?date=6/6/2023), which displays not only a rotationaly symmetric grid but a rotationally symmetric *fill*. While this might seem daunting to build, all we have to do is override a couple methods of the base Crossword class, and use some modified wordlists.

src/blacksquare/spreadthewordlist.npz

3.53 MB
Binary file not shown.

src/blacksquare/word_list.npz

-8.24 MB
Binary file not shown.

src/blacksquare/word_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,4 @@ def _normalize(word: str) -> str:
373373
return word.upper().replace(" ", "")
374374

375375

376-
DEFAULT_WORDLIST = WordList(files("blacksquare").joinpath("word_list.npz"))
376+
DEFAULT_WORDLIST = WordList(files("blacksquare").joinpath("spreadthewordlist.npz"))

0 commit comments

Comments
 (0)