0.0.3 • Published 5 years ago
retext-spell-file v0.0.3
retext-spell-file
retext-spell with .respell personal dictionary file support.
This package provides the exact same interface and functionality as
retext-spell with one small but useful modification.
retext-spelltakes apersonaloption, which is a string of lines, in which each line is an entry in an Hunspell personal dictionary (a.k.a. word list).retext-spell-filealso takes apersonaloption. But if thatpersonaloption is falsy, it will search up the directory hierarchy for a file named.respelland read its (UTF-8) contents into a value that is passed toretext-spellin thepersonaloption.
Installation
Follow the retext-spell installation instructions but replace
retext-spell with retext-spell-file.
Usage
- Refer to the
retext-spellusage instructions but replaceretext-spellwithretext-spell-file. - Leave
options.personalundefined. - Add a file named
.respellto the top level of your project. - Add one correctly spelled word per line to
.respell.
For more information:
- See hunspell(5) for the personal dictionary format.
- See our
.respellfor an example.