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
本文介绍了如何为Hunspell创建自定义字典,包括参考算法、配置步骤以及测试过程。通过链接提供的Stack Overflow问答和外部资源,用户可以了解详细的操作流程。
647

被折叠的 条评论
为什么被折叠?



