Пример #1
0
        /// <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));
        }
Пример #2
0
        /// <inheritdoc />
        public bool ShouldIgnoreWord(string word)
        {
            foreach (var dictionary in bufferSpecificDictionaries)
            {
                if (dictionary.ShouldIgnoreWord(word))
                {
                    return(true);
                }
            }

            return(globalDictionary.ShouldIgnoreWord(word));
        }