您可以像这样将单词添加到NHunspell (Hunspell的.NET端口)中
NHunspell.Hunspell hunspell = new NHunspell.Hunspell(".affPath", ".dicPath");
String[] words = GetUserWords();
foreach (String word in words)
hunspell.Add(word);如果我需要从对象中删除一个单词怎么办?有没有一种方法可以从NHunspell对象中删除一个单词,而不必创建一个新单词并再次添加自定义单词?
发布于 2013-04-01 01:52:29
目前(1.1.0.0) remove还没有在NHunspell中实现,但我考虑在下一个版本中实现它
添加:从1.1.1.0版本开始实现remove。
https://stackoverflow.com/questions/15556402
复制相似问题