/// <summary> /// Ignore all occurrences of the given word, but don't add it to the dictionary /// </summary> /// <param name="word">The word to be ignored</param> /// <returns><c>true</c> if the word was successfully marked as ignored</returns> public bool IgnoreWord(string word) { if (String.IsNullOrWhiteSpace(word)) { return(false); } return(this.ShouldIgnoreWord(word) || globalDictionary.IgnoreWord(word)); }
/// <inheritdoc /> public bool IgnoreWord(string word) { if (String.IsNullOrWhiteSpace(word) || this.ShouldIgnoreWord(word)) { return(false); } foreach (var dictionary in bufferSpecificDictionaries) { if (dictionary.IgnoreWord(word)) { return(true); } } return(globalDictionary.IgnoreWord(word)); }