Sha256: ad2b264746854659a559af6604736cdd7ecedd508faf30e62c391fa3f53b3ba1
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
# Banned Words Detects and masks banned words within a text ## Installation Add this line in your Gemfile: ```ruby gem 'banned_words' ``` ## Usage ```ruby BannedWords.create!('dog') phrase = 'The quick brown fox jumps over the lazy dog' BannedWords.mask(phrase) > 'The quick brown fox jumps over the lazy *Buzz*' # Another example: phrase = 'Red d-o-g' BannedWords.mask(phrase) > 'Red *Buzz*' ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
banned_words-0.1.0 | README.md |