swyphcosmo / vscode-spellchecker

Spell check extension for Visual Studio Code
MIT License
16 stars 10 forks source link

Words that start with capitals should be ignored #70

Closed simonv3 closed 2 years ago

simonv3 commented 2 years ago

I feel like proper names should be ignored, eg. Boggs, for spelling errors?

swyphcosmo commented 2 years ago

Apologies for such a late response.

The problem here is how to detect if a word is a proper name or if it's a non-proper name that's at the beginning of a sentence.

You can add a custom regular expression to ignore capitalized words:

"spellchecker.ignoreRegExp": [
    "/[A-Z][a-z]*/g",
]