streetsidesoftware / vscode-spell-checker

A simple source code spell checker for code
https://streetsidesoftware.github.io/vscode-spell-checker/
Other
1.39k stars 124 forks source link

Enhancement Request > Recognize alternate characters for words in user dictionary and offer to substitute #2066

Open ljsinclair opened 2 years ago

ljsinclair commented 2 years ago

Hi there,

I'm using your plugin and trying to work out if it's possible to have the extension recognize a word is: (a) misspelled, and (b) contained in a user dictionary in a slightly different form.

My use-case is I'm using VScode for writing content rather than programming.

To reproduce, I'm spelling the word without the alternate character BUT the spellcheck is not currently picking this up as a spelling error.

Ideally the dictionary would pick this up and offer to substitute for the word from the user dictionary.

Jason3S commented 2 years ago

@ljsinclair,

It is not easy to infer the intent based upon the existence of similar words in a custom dictionary.

But you can tell the spell checker to forbid words by adding a ! in front.

User Words:

café
!cafe

In this case, café is allowed, but cafe is not.

ljsinclair commented 2 years ago

Thanks for your help :)