bad_words 0.1.0
bad_words: ^0.1.0 copied to clipboard
A dart filter for bad words. Implemented with most American English 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. [...]
example/example.dart
import 'package:bad_words/bad_words.dart';
bool validator(String arg) {}
main() {
final testString = 'string that does not contain bad words';
final filter = Filter();
if (filter.isProfane(testString)) {
print('put a nickle in the swear jar!');
}
}