/// <summary> /// Adds the passed words to user dictionary. /// The words' culture is auto detecting. /// </summary> /// <param name="words"></param> /// <returns>false, if no word was added (all of the word already exist)</returns> public bool AddUserWord(IEnumerable <string> words) { bool res = false; foreach (var word in words) { res |= AddUserWord(word, TextTools.GetTextCulture(word)); } return(res); }
/// <summary> /// /// </summary> /// <param name="word"></param> /// <param name="suggestForCorrectWord"></param> /// <returns></returns> public SpellSuggestion[] SuggestCorrectedWords(string word, bool suggestForCorrectWord) { return(SuggestCorrectedWords(word, TextTools.GetTextCulture(word), suggestForCorrectWord)); }
/// <summary> /// Adds the passed word to user dictionary. /// The word's culture is auto detecting. /// </summary> /// <param name="word"></param> /// <returns>false, if word wasn't added (e.g. the word already exists)</returns> public bool AddUserWord(string word) { return(AddUserWord(word, TextTools.GetTextCulture(word))); }
/// <summary> /// Checks the spelling of the passed word. Culture is auto detecting. /// </summary> /// <param name="word"></param> /// <returns>true, if word is correct</returns> public bool CheckWordSpell(string word) { return(CheckWordSpell(word, TextTools.GetTextCulture(word))); }