-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Allow forbidden words if they're found in another dictionary #4042
Comments
There is an easy workaround. Add the word in question to the ignore list. cSpell.ignoreWords Or try it out in a document by typing No need to change code. |
Thank you for the AI suggestion. There is a bit more involved. The spell checker looks at the problem from a higher level. From a company level:
It is not a perfect solution, but it meets nearly everyone's needs. |
Thanks. The workaround is not entirely satisfactory though. Given
Either way, the above must be done for each applicable word. Moreover, the set of applicable words depends on the configured set of languages. I'd propose CSpell to have a configurable strategy for this with 3 options:
So for
|
Maybe not satisfactory, but sufficient. There are many options. Using "cSpell.overrides": [
{
"filename": ["**/*.md"],
"language": "en,nl",
"ignoreWords": ["technologies"]
},
], You can even define your own dictionary of words. "cSpell.dictionaryDefinitions": [
{
"name": "allowWordsInNL",
"path": "./.cspell/allowWords.txt", // path to file
"noSuggest": true, // overrides flagged words
"addWords": true // this means it will show up on the list of places to add words.
}
],
"cSpell.overrides": [
{
"filename": "**/*.md",
"language": "en,nl",
"dictionaries": ["allowWordsInNL"]
}
], |
What I'd like, is for a document with
The proposed workarounds satisfy the first requirement, but not the second. |
Would it be clearer to add an option to show ignored words in the suggestions? Like Background to the overall logicSome thought went into the existing system, it is not ideal, but there are not any real easy solutions. Let's take the word It is possible to add Another example is the British dictionary contains both |
If such an option would be added, I'd happily make use of it. FWIW, I think the root issue is that there are multiple reasons to flag words, and that the spell checker is unable to distinguish the different reasons and take them into account. |
To reproduce: with
"cSpell.language": "en,nl"
, type the wordtechnologies
.Actual:
technologies
is marked as forbidden because it is forbidden in the nl-nl dictionary.Expected:
technologies
is not marked, since it's in the en-us and en-gb dictionaries.The text was updated successfully, but these errors were encountered: