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

Using a custom dictionary with the desired correction #139

Open
mzeidhassan opened this issue Feb 8, 2023 · 1 comment
Open

Using a custom dictionary with the desired correction #139

mzeidhassan opened this issue Feb 8, 2023 · 1 comment

Comments

@mzeidhassan
Copy link

mzeidhassan commented Feb 8, 2023

Hi @mammothb ,

I am wondering if there is a way to force some words to be corrected to a certain word.
for example, I want always to correct "teh" with 'the', instead of 'ten' for example.

Something like:
sym_spell.create_dictionary_entry("splling", "spelling", 1000)
which apparently won't work, but just as an example of the logic.

Maybe, there is a way to create a custom disctionary with 'misspelling' and 'correction' for these specific words and symspellpy will use them instead of relying on the current used edit distance. Please let me know what you think.

Thanks

@Arsive02
Copy link

+1

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

No branches or pull requests

2 participants