cspell
cspell copied to clipboard
Allow wordlists to contain suggestions
Problem
Currently, it's not possible to add suggestions for words in a word list. You can only forbid them, meaning you would have to add them to the config in order to add suggestions.
Solution
Word lists could allow the same syntax as suggestWords and flagWords, e.g.:
# Allowed words with suggestions
cancelled->canceled
# Forbidden words with suggestions
!DOTO->TODO
!retrun: return
Alternatives
No response
Additional Context
Relates to #3777.
Also, the example !retrun: return probably wouldn't work with anything other than "dictionaryDefinitions": [ { "type": "S" } ] (the default). Granted, this option isn't documented outside of the schema/API anyway.
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Yes, I think it would be useful.