cspell icon indicating copy to clipboard operation
cspell copied to clipboard

Allow wordlists to contain suggestions

Open Alunderin opened this issue 2 months ago • 1 comments

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

Alunderin avatar Oct 13 '25 13:10 Alunderin

Yes, I think it would be useful.

Jason3S avatar Nov 07 '25 08:11 Jason3S