errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.4k stars 150 forks source link

Is it possible to add words with dashes to the whitelist? #346

Closed andreysamode closed 2 years ago

andreysamode commented 3 years ago

Is it possible to add words with dashes to the accept.txt?

I added "matter-of-factly", but still get a spellcheck error:

# echo "matter-of-factly" | ./vale

 stdin.txt
 1:11  error  Did you really mean 'factly'?  Vale.Spelling

✖ 1 error, 0 warnings and 0 suggestions in stdin.

Thanks!

jdkato commented 3 years ago

No, not currently.

The problem is that the phrase is tokenized prior to spell checking. In a future release (perhaps the next one), you'll be able to change this, though.

andreysamode commented 3 years ago

Looking forward to it. Thanks for the great work!

plaindocs commented 3 years ago

Adding hyphen for findability. :-p

jdkato commented 2 years ago

This is supported now.

andreysamode commented 2 years ago

Excellent! Thanks!