profanity_filter 1.0.3 copy "profanity_filter: ^1.0.3" to clipboard
profanity_filter: ^1.0.3 copied to clipboard

outdated

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 defaultWordsToFilterOutList to a new file default_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 censor method 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 getProfanity method.
  • Added test for censor method 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
99
likes
0
pub points
95%
popularity

Publisher

unverified uploader

Simple filter to check and censor strings against profanity, obscene words. A default English words list is provided (LDNOOBW).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on profanity_filter