Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Swearings correction doesn't work #118

Description

@alexandrduduka

Hello, and first of all, thank you for all your hard work on this awesome tool!

Behaviour I am facing occurs when there is swear word (f.e. "bstard") typed with misspelling - I can't get corrected version from it ("bastard") when running spellchecker.getCorrectionsForMisspelling("bstard"), instead it gives other words (like "bustard), but not what I actually need.
At the same time using spellchecker.isMisspelled("bastard") will return false, which means word is in the list already, so just adding word to the dictionary with spellchecker.add("bastard") doesn't resolve the issue.

It is crucial for my use-case to get profanities corrections, so I would be very grateful if you could:
a) tell me if I got the reason of the issue correctly, or if I am missing something important
b) navigate me to the option how to remove this kind of "swear word restriction"
c) expose such option if it is not present in current API

Thanks in advance!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions