art ispell自定义hunspell字典或词典

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值