google
http://xahlee.info/comp/hunspell_spell_checking.html
Hunspell Tutorial
By Xah Lee. Date: 2010-06-16
Hunspell Tutorial
How to check words interactively?
hunspell -d en_US
example <cr> exampl <cr>
Setting Environment Variables Path
暂无
Simple Usage
How to spell check a file interactively?
echo exampl > ~/1
hunspell -d en_US 1
输入1,cat 1
输出:example
How to spell check a file in batch?
echo exampl > ~/1
cat ~/1 | hunspell
输出:& exampl 4 0: example, exam pl, exam-pl, exemplar
echo exampl > ~/1
hunspell -l ~/1
输出:exampl
How to specify the file’s encoding?
echo exampl > ~/1
hunspell -l -i utf-8 ~/1
输出:exampl
How to check a single word?
echo exampl | hunspell
输出:& exampl 4 0: example, exam pl, exam-pl, exemplar
Where is personal dictionary at?
cat ~/.hunspell_en_US