bad_words 0.1.1 bad_words: ^0.1.1 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. Future versions will allow you to updat [...]
import 'package:bad_words/bad_words.dart';
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!');
}
}