-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add option to only spellcheck parts of hyphenated words, not the entire word #16
Comments
This would be really helpful. We are planning to generate some markdown docs with variable names that will use hyphens between words. Having this feature would be super helpful so we could automatically spellcheck these variable names. |
@bjankord thanks for the feedback! I've been thinking about this a bit more. Currently, Or perhaps it would be more helpful to have an option for the tool to only spellcheck the parts of hyphenated words. For example, it would check |
For my use case, it would be nice to check just |
OK thanks! That makes sense to me as a feature. |
Any word on what became of this feature? We have a large and growing dictionary of valid hyphenations that must be added as custom dictionary words (e.g. |
@ryanblock Thanks for the feedback! I'm not actively working on spellchecker-cli, so I don't have plans to add this feature. I'd definitely review and merge a PR that added it. |
Ok, good to know! Did you have any early research / notes on implementation here to crib if I were to take a swing? Thank you! |
I haven't looked into how we could implement this. I don't think |
But wouldn't that turn words like "x-ray" into "x ray" and make it very difficult to spellcheck in some instances? This comes from experience on a personal project of mine. |
That's a good point. I think that's the reason why I wouldn't make this the default behaviour for spellchecker-cli. People would have to pass a flag like |
I just thought of something kinda related. Should we treat equal signs as spaces as well? While it doesn't show up in normal communication; it does show up in technical documentation on occasion to illustrate a point. |
Good question. I imagine that Retext would already treat |
This is an example of a hyphenated compound word, and those words should probably be known and ignored by this feature. |
For example, check
space
,infix
, andops
when presented withspace-infix-ops
, but don't try to spell-checkspace-infix-ops
.Originally, this issue was about spell-checking the parts of the hyphenated word in addition to the hyphenated words. Updated based on the comments below.
The text was updated successfully, but these errors were encountered: