bad_words 0.1.0 copy "bad_words: ^0.1.0" to clipboard
bad_words: ^0.1.0 copied to clipboard

outdated

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!');
  }
}
15
likes
0
points
285
downloads

Publisher

unverified uploader

Weekly Downloads

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.dart file. Bad words in this case are mainly considered American swear/curse/cuss words. There are a few explicitly sexual or violent emojis as well. Future versions will allow you to update the list.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on bad_words