private static string GetRootForWord(string word, WordList dictionary) { return(dictionary.ContainsEntriesForRootWord(word) ? word : dictionary.CheckDetails(word).Root); }