Skip to content

Using a custom dictionary with the desired correction #139

@mzeidhassan

Description

@mzeidhassan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions