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

Example of wrong spell-correction #164

Closed
antongigele opened this issue Dec 27, 2023 · 1 comment · Fixed by #165
Closed

Example of wrong spell-correction #164

antongigele opened this issue Dec 27, 2023 · 1 comment · Fixed by #165

Comments

@antongigele
Copy link

The code returns a false positive for the word "familly", though it should return "family". I guess that familly has been denoted a existing word somehow by mistake, there might be other words also.
Here is the code to see the result

from spellchecker import SpellChecker
spell = SpellChecker()

word = "familly"
print(spell.correction(word))

>>> familly
@barrust
Copy link
Owner

barrust commented Dec 27, 2023

Yes, you are correct. The data source (opensubtitles) for the word frequency list contains many mistakes and I am trying to find a good solution to correct these issues.

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

Successfully merging a pull request may close this issue.

2 participants