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

Swearings correction doesn't work #118

Open
alexandrduduka opened this issue Apr 29, 2019 · 2 comments
Open

Swearings correction doesn't work #118

alexandrduduka opened this issue Apr 29, 2019 · 2 comments

Comments

@alexandrduduka
Copy link

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!

@alexandrduduka
Copy link
Author

@rafeca @smashwilson @daviwil, just judging by commit history, I believe some of you is involved in current maintenance of the repo. Could you give some advice on my issue, please?

@dmoonfire
Copy link
Contributor

I would start with which operating system you are using and which version. This library has three possible implementations based on that and the prefer environment variable.

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

No branches or pull requests

2 participants