Ejemplo n.º 1
0
        /// <summary>
        /// Determines whether the specified word is a stopword.
        /// </summary>
        /// <param name="word">The word check.</param>
        /// <returns><c>true</c> if the specified word is a stopword; otherwise, <c>false</c>.</returns>
        protected bool IsStopword(string word)
        {
            if (stopwordProvider == null || string.IsNullOrWhiteSpace(word))
            {
                return(false);
            }

            return(stopwordProvider.IsStopword(word));
        }