tbroadley / spellchecker-cli

A command-line tool for spellchecking files.
MIT License
119 stars 16 forks source link

Thinks an empty space " " is misspelt in some occasions #100

Closed mic-max closed 2 years ago

mic-max commented 2 years ago

image

It thinks the space before a string like this :telephone: is a mistake. I use those strings to indicate emoji's in Jekyll's jemoji package. When it prints the line and column number the column number actually lines up with the first letter (at least from VS Code) for all the cases included in my screenshot.

This doesn't happen all the time, I have way more than the 5 emojis seen in my screenshot. So there is something special going on for these in particular.

tbroadley commented 2 years ago

Thank you for filing an issue!

I'm having difficulty reproducing this issue on my Windows laptop. I tried running the latest version of Spellchecker with the following arguments:

Source file: https://github.com/mic-max/micmax.pw/blob/master/_posts/2022-01-04-call-visualisation.md Dictionary: https://github.com/mic-max/micmax.pw/blob/master/dictionary.txt

And didn't see any spelling errors.

Which version of the tool are you using? If it's older than 5.0.0, then perhaps this is related to https://github.com/tbroadley/spellchecker-cli/issues/87. If so, you should be able to fix the issue by upgrading to 5.0.1 or 6.0.2.

mic-max commented 2 years ago

Ahh I was using an old version

+-- spellchecker-cli@4.10.0
`-- spellchecker@3.7.1

Running the command npm i spellchecker-cli@latest -g to update to the latest version fixed the issue. Thanks, sorry for the noise!