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-spell
takes apersonal
option, 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-file
also takes apersonal
option. But if thatpersonal
option is falsy, it will search up the directory hierarchy for a file named.respell
and read its (UTF-8) contents into a value that is passed toretext-spell
in thepersonal
option.
Installation
Follow the retext-spell
installation instructions but replace
retext-spell
with retext-spell-file
.
Usage
- Refer to the
retext-spell
usage instructions but replaceretext-spell
withretext-spell-file
. - Leave
options.personal
undefined. - Add a file named
.respell
to 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
.respell
for an example.