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');