Vscode-spell-checker: Problem with possessive camelCase words, e.g. "PyGMO's"

Created on 7 Sep 2018  路  6Comments  路  Source: streetsidesoftware/vscode-spell-checker

I have added these two words to the workspace dictionary:

PyGMO's
PyGMO

But still I get a spelling error on PyGMO's in the text. Specifically, it thinks I'm writing Gmo's:

image

It doesn't seem like Code Spell Checker can handle this kind of word?

Most helpful comment

This is a known issue. It has to do with how the word splitter works. Words are only checked after they have been split, not before. An enhancement to the cSpell library would be to do the checking in two steps: 1. against the full word and then 2. against the split words.

All 6 comments

This is a known issue. It has to do with how the word splitter works. Words are only checked after they have been split, not before. An enhancement to the cSpell library would be to do the checking in two steps: 1. against the full word and then 2. against the split words.

Ok. Is there a workaround until then?

The easiest thing to do for now is just to add GMO to your word list.

Alright 馃憤 But for the record, I had to add GMO's on the list.

Yes, that is right, the 's is considered part of the word.

Add the following to your workspace setting

"cSpell.ignoreRegExpList": ["'s\\b"]

Source - Issue 232

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gandalfsaxe picture gandalfsaxe  路  3Comments

apptimise picture apptimise  路  6Comments

Deilan picture Deilan  路  3Comments

jose-a-sa picture jose-a-sa  路  6Comments

solidpixel picture solidpixel  路  5Comments