Exemplo n.º 1
0
 public string[] correct_words_appear_in_word_map(string inputString)
 {
     var c = new WordCounter();
     c.AddText(new StringReader(inputString));
     return c.WordMap.Keys.OrderBy(s => s).ToArray();
 }
Exemplo n.º 2
0
 public string[] correct_words_appear_in_word_map_when_threshold_is_applied(string inputString, int workMinLength)
 {
     var c = new WordCounter();
     c.AddText(new StringReader(inputString), workMinLength);
     return c.WordMap.Keys.OrderBy(s => s).ToArray();
 }
Exemplo n.º 3
0
 public int correct_number_of_words_appear_in_word_map(string inputString)
 {
     var c = new WordCounter();
     c.AddText(new StringReader(inputString));
     return c.WordMap.Count;
 }