bad_words 0.3.0 bad_words: ^0.3.0 copied to clipboard
A dart filter for bad words. This filter will allow you to make a simple check to tell if a string contains bad words as defined in the lib/word_list.dart file.
bad_words #
A dart filter for English bad words.
Installation #
bad_words: ^0.2.2
Usage #
import 'package:bad_words/bad_words.dart';
final filter = Filter();
if (filter.isProfane('some string to test')) {
// ... validation error etc.
}
// clean up a profane string
final cleanString = filter.clean('some test string');