1

您可以将单词添加到 NHunspell(Hunspell 的 .NET 端口)中

NHunspell.Hunspell hunspell = new NHunspell.Hunspell(".affPath", ".dicPath");
String[] words = GetUserWords();
foreach (String word in words)
  hunspell.Add(word);

如果我需要从对象中删除一个单词怎么办?有没有办法从 NHunspell 对象中删除一个单词,而不必创建一个新单词并再次添加自定义单词?

4

1 回答 1

0

目前 (1.1.0.0) remove 没有在 NHunspell 中实现,但我考虑在下一个版本中实现它

补充:由于(1.1.1.0)删除已实施。

于 2013-03-31T17:52:29.050 回答