CLI spelling checker for various languages.
Install
Install hunspell
, with pkg install hunspell
Download hunspell dictionaries
https://cgit.freedesktop.org/libreoffice/dictionaries/
Then copy .aff and .dic and other license files, for example
pi_PI.aff
pi_PI.dic
pi_PI_README.md
to:
/usr/share/hunspell
then restart your Terminal app.
Basic commands
-
View help:
hunspell -h
-
To list spelling error words only:
hunspell -d pi_PI -l pali-error-file.txt
- To correct
hunspell -d pi_PI pali-error-file.txt
DIY hunspell dictionaries
- Read the default dictionaries, for example,
en_GB.dic
anden_GB.aff
to get the ideas.
The above pi_PI
is my pali hunspell
dictionary.
- One can create a spelling checker extension for LibreOffice easily.