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.

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');
15
likes
160
points
753
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