out
参考alg
in
google hunspell personal dict
http://stackoverflow.com/questions/7561648/how-to-make-custom-dictionary-for-hunspell
http://www.suares.com/index.php?page_id=25&news_id=233
alg
uname -r
4.5.5-300.fc24.x86_64
hunspell -v
@(#) International Ispell Version 3.2.06 (but really Hunspell 1.3.3)
配置
echo -e "linux" > ~/words ; cat ~/words
wc -l words > words.dic
sort words | uniq >> words.dic
touch words.aff
sudo mv words.dic words.aff /usr/share/myspell ; ls /usr/share/myspell
测试
echo linux | hunspell -d words
echo linu | hunspell -d words
echo linuxs | hunspell -d words
echo unix | hunspell -d words
echo windows | hunspell -d words
输出
*
& linu 1 0: linux
& linus 1 0: linux
& unix 1 0: linux
# windows 0