/// <inheritdoc /> public IEnumerable <string> SuggestCorrections(string word) { foreach (var dictionary in bufferSpecificDictionaries) { var suggestions = dictionary.SuggestCorrections(word); if (suggestions.Count() != 0) { return(suggestions); } } return(globalDictionary.SuggestCorrections(word)); }
/// <summary> /// This is used to suggest corrections for a misspelled word /// </summary> /// <param name="word">The misspelled word for which to get suggestions</param> /// <returns>An enumerable list of zero or more suggested correct spellings</returns> public IEnumerable <string> SuggestCorrections(string word) { return(globalDictionary.SuggestCorrections(word)); }