bad_words 0.3.0 copy "bad_words: ^0.3.0" to clipboard
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.

example/example.dart

import 'package:bad_words/bad_words.dart';

main() {
  final testString = 'string that does not contain bad words';
  final filter = Filter();

  // check if the string is profane
  if (filter.isProfane(testString)) {
    print('put a nickle in the swear jar!');
  }

  // clean up those bad words
  final clean = filter.clean(testString);
  return clean;
}
15
likes
160
points
749
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on bad_words