public static void Main(string[] args) { WordServiceClient client = new WordServiceClient(); var count = client.GetTimesOfMuch("i", "iii"); Console.WriteLine(count); }
/// <summary> /// Function that evaluates all words in the given question to its wordtypes. /// All verbs are converted to their full version. (eg worked --> to work, werkte --> werken) /// </summary> /// <param name="question">A given question for which all words are to be resolved to their type.</param> /// <returns>A list containing the resolved words that were contained in the question</returns> public IList<Word> ResolveWords(String question) { IWordService service = new WordServiceClient(); return ConvertQuestion(question) .SelectMany(x => service.ResolveWord(x)) .ToList(); }