简体   繁体   中英

Is it possible to remove a word from a NHunspell object

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM