private static List <string> ValidateWordList(List <string> allWords) { List <string> bigList = new List <string>(); List <string> smallList = new List <string>(); LoadDict(); foreach (var word in allWords) { var results = _anagram.FindForString(word.ToLower()); var byLength = (from item in results where item.Length > 2 orderby item.Length descending select item.ToUpper()).ToList(); if (GetValidated(byLength)) { bigList.Add(word); } else { smallList.Add(word); } } return(bigList); }
private IEnumerable <string> GetAnagramsForWord(string word) { var results = _anagram.FindForString(word); var byLength = (from item in results where item.Length > 2 orderby item.Length descending select item).ToArray(); //var frequentWordsExcluded = return(byLength); }