Question

You can add words to NHunspell (.NET port of Hunspell) as such

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

What if I need to remove a word from the object? Is there a way to remove a word from the NHunspell object without having to create a new one and adding custom words again?

Était-ce utile?

La solution

Currently (1.1.0.0) remove is not implemented in NHunspell but i consider to implement it in the next version

Addition: Since ( 1.1.1.0) remove is implemented.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top