-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download a custom Aspell dictionary and build it #1485
base: main
Are you sure you want to change the base?
Conversation
I played around a little bit. With
it worked for me. However, alot of words that are fixed by codespell exist in the big dictionary dictionary. Thus, the test fail. Maybe the dictionary is to big. |
@@ -89,6 +89,7 @@ panting->painting | |||
payed->paid | |||
planed->planned | |||
pleas->please | |||
pneumonic->mnemonic, pneumonia, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess pneumatic
is probably "too different"?
@@ -12,7 +12,8 @@ | |||
|
|||
try: | |||
import aspell | |||
speller = aspell.Speller('lang', 'en') | |||
#speller = aspell.Speller('lang', 'en') | |||
speller = aspell.Speller(('lang', 'en-custom'), ('data-dir', '/home/travis/build/codespell-project/codespell/aspell6-en-custom/')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably makes sense to tweak this to not rely on a hardcoded /home/travis/...
path?
Fixes #2657?