/// <summary>
 /// Determines whether the specified valid string is offensive.
 /// </summary>
 /// <param name="validString">The valid string.</param>
 /// <returns>
 /// 	<c>true</c> if the specified valid string is offensive; otherwise, <c>false</c>.
 /// </returns>
 public static bool IsOffensive(string validString)
 {
     var instance = new Profanity();
     return instance.IsOffensiveHelper(validString);
 }
Exemple #2
0
        /// <summary>
        /// Determines whether the specified valid string is offensive.
        /// </summary>
        /// <param name="validString">The valid string.</param>
        /// <returns>
        ///     <c>true</c> if the specified valid string is offensive; otherwise, <c>false</c>.
        /// </returns>
        public static bool IsOffensive(string validString)
        {
            var instance = new Profanity();

            return(instance.IsOffensiveHelper(validString));
        }