profanity_filter 1.0.3
profanity_filter: ^1.0.3 copied to clipboard
Simple filter to check and censor strings against profanity, obscene words. A default English words list is provided (LDNOOBW).
1.0.3 Major Refactoring #
- Moved the default list of words
defaultWordsToFilterOutListto a new filedefault_list.dart - Renamed the methods to a more concise form -
hasProfanity,getAllProfanity,censor - The older, longer names of the above mentioned methods (
checkStringForProfanity,getAllProfanityFoundInString,censorString) are marked deprecated. They'll still work, but its recommended you choose their newer, shorter, more concise form. - The
censormethod is now case-agnostic, it will now censor profanity regardless of its case (converts all words to lowercase before comparing) (Thanks to contributor towner-10 - See PR ) - Added test for
getProfanitymethod. - Added test for
censormethod with case.
1.0.2 Fixed Description #
- Updated package description
1.0.1 Fixed Dart SDK Constraints #
- Updated package description
- Fixed Dart SDK constraints in pubspec.yaml
1.0.0 Initial release. #
- Initial release