Skip to content

Commit 430656c

Browse files
Use large aspell dictionaries
We have been using the default aspell dictionary size: 60=med-large This change will switch to larger dictionaries: 80=huge In practice, huge dictionaries are rot available, so the above size yields a large dictionary: 70=large http://aspell.net/man-html/How-Aspell-Selects-an-Appropriate-Dictionary.html
1 parent 168fd92 commit 430656c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codespell_lib/tests/test_dictionary.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
for lang in supported_languages:
1919
_wordlist = op.join(_test_data_dir, f"{lang}-additionnal.wordlist")
2020
if op.isfile(_wordlist):
21-
spellers[lang] = aspell.Speller(("lang", lang), ("wordlists", _wordlist))
21+
spellers[lang] = aspell.Speller(("lang", lang), ("size", "80"), ("wordlists", _wordlist))
2222
else:
23-
spellers[lang] = aspell.Speller("lang", lang)
23+
spellers[lang] = aspell.Speller(("lang", lang), ("size", "80"))
2424
except ImportError as exp:
2525
if os.getenv("REQUIRE_ASPELL", "false").lower() == "true":
2626
raise RuntimeError(

0 commit comments

Comments
 (0)