Пример #1
0
        /// <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));
        }
Пример #2
0
 /// <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));
 }