cspell-dicts icon indicating copy to clipboard operation
cspell-dicts copied to clipboard

Why is lowercase "th" not flagged as an error, e.g. "look at th typo"

Open justingrant opened this issue 4 years ago • 2 comments

I just had to re-do a documentation PR because CSpell didn't catch the word "th" as being a typo in a markdown file. I understand why "Th" (for the element Thorium) is accepted, but why was lowercase "th" accepted? Are all capitalized words' lowercase variants automatically accepted too? Or is it accepted because markdown can accept HTML elements and the CSpell markdown parser isn't sophisticated enough to distinguish between element names (where th is OK) and regular text where it's always a typo?

FWIW, http://app.aspell.net/lookup?dict=en_US;words=th shows that the lowercase "th" isn't present.

justingrant avatar Feb 22 '22 03:02 justingrant

https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell#cspelljson-sections minWordLength default is 4, so it doesn't check words shorter than 4 characters unless you override it

nschonni avatar Feb 22 '22 05:02 nschonni

There are two cases, /th tag/i (references to HTML tag) and misspelt "the". I think if possible, we should try to recognise both, out of the box, on default settings.

For comparison, Grammarly is on the opposite extreme: Screenshot 2022-07-20 at 09 21 55

revelt avatar Jul 20 '22 08:07 revelt