/// <summary> /// Check the ignored words dictionary for the given word /// </summary> /// <param name="word">The word for which to check</param> /// <returns>True if the word should be ignored, false if not</returns> public bool ShouldIgnoreWord(string word) { if (String.IsNullOrWhiteSpace(word) || ignoredWords.Contains(word)) { return(true); } return(globalDictionary.ShouldIgnoreWord(word)); }
/// <inheritdoc /> public bool ShouldIgnoreWord(string word) { foreach (var dictionary in bufferSpecificDictionaries) { if (dictionary.ShouldIgnoreWord(word)) { return(true); } } return(globalDictionary.ShouldIgnoreWord(word)); }