-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Turning off a dictionary does not seem to work #1215
Comments
I agree that this is confusing. I think the behavior should be changed to be more intuitive. There are two workarounds: Workaround 1 - Include then exclude the dictionary name."dictionaries": [ "softwareTerms", "!softwareTerms" ], Workaround 2 - Use
|
Cool, I'll use the workaround for now. Thanks! |
* fix: Add Sample for turning off dictionaries * ci: Only cspell-action on main branch * fix: fix typo in readme * fix: correct how dictionaries are disabled. fix: #1215
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Info
Kind of Issue
Which Tool or library
Which Version
Version: 5.4.0
Issue with supporting library?
OS:
version:
Windows 10
Bug Description
Describe the bug
Multiple acronyms that I want flagged as unknown are defined in an available dictionary. If I exclude that dictionary from the available dictionaries in configuration using
"dictionaries": ["!softwareTerms"]
, those terms still aren't flagged. I also tried using"dictionaries": ["!software-terms"]
.The attached test.md file contains four acronyms: HIPAA, RBAC, HIPPA, and RABC. The last two are spelled incorrectly for test purposes. The test.md file also contains lowercase versions of each acronym.
When running
cspell trace
for each acronyms, HIPPA and RBAC trace to the softwareTerms dictionary, and the incorrect spellings don't appear in any dictionary. After removing that dictionary, the four acronyms and the lowercase versions should be all be flagged as unknown words.To Reproduce
Steps to reproduce the behavior:
cspell test.md -c cspell.json
Expected behavior
All four acronyms and the lowercase variations should all be flagged as unknown words.
cspell.json
test.md
The text was updated successfully, but these errors were encountered: