Skip to content
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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

peternewman
Copy link
Collaborator

@peternewman peternewman commented Apr 18, 2020

Fixes #2657?

@sebweb3r
Copy link
Contributor

I played around a little bit. With

    speller = aspell.Speller(('master', '/tmp/aspell6-en-custom/en-custom.rws'))

it worked for me. However, alot of words that are fixed by codespell exist in the big dictionary dictionary. Thus, the test fail.
See the output.txt

Maybe the dictionary is to big.

@@ -89,6 +89,7 @@ panting->painting
payed->paid
planed->planned
pleas->please
pneumonic->mnemonic, pneumonia,
Copy link
Contributor

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/'))
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add donut, and other words missing from aspell
3 participants