Ejemplo n.º 1
0
 public void GenerationTest()
 {
     using (Hunspell hunspell = new Hunspell("en_us.aff", "en_us.dic"))
     {
         var generated = hunspell.Generate("boy", "girls");
         foreach (var gen in generated)
         {
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Generates the specified word by a sample.
 /// </summary>
 /// <param name="word">The word to generate.</param>
 /// <param name="samples">The sample word.</param>
 /// <returns>The list of words.</returns>
 public List <string> Generate(string word, string samples)
 {
     return(_hunspell.Generate(word, samples));
 }