Skip to content

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.

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"?

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

4 participants