-
-
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
[Bug]: Forbidden words with hyphens are treated differently #6582
Comments
Fixes srobo/tasks#1471 Includes workaround for streetsidesoftware/cspell#6582
Fixes srobo/tasks#1471 Includes workaround for streetsidesoftware/cspell#6582
Thank you. Great example. |
The cause is that a The work around is to add both versions:
|
You've probably already seen this but just for the record -- if we add For completeness the current behaviour is:
As you mention, the workaround is to add the trailing punctuation into a variant of the banned word. |
You just confirmed what I thought was going on. It has to do with how the spell checker breaks up words. In the case of In the case of For example I think it makes sense to strip off the Since |
Thanks! Are there any other punctuation which should have similar treatment? Perhaps |
These are the special characters allowed Period |
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. |
Kind of Issue
Runtime - command-line tools
Tool or Library
cspell
Version
6.31.1, 8.16.0
Supporting Library
Not sure / None
OS
Linux
OS Version
Ubuntu 22.04.5 LTS
Description
Given the sentence:
I would expect that forbidding both
like
andflip-flops
to behave the same:However this results only in
like
being picked up as a forbidden word and notflip-flops
.Note that if we change the sentence:
then now
flip-flops
is rejected.It's super useful that hyphenated words can be forbidden, however the presence of the hyphen appears to result in different behaviour.
Steps to Reproduce
No response
Expected Behavior
Forbidden hyphenated words to be forbidden even when followed by punctuation.
Additional Information
No response
cspell.json
cspell.config.yaml
No response
Example Repository
https://github.com/srobo/website/
Code of Conduct
The text was updated successfully, but these errors were encountered: