RubyGems.org

Detects #uck F|_|__C_K and other variations of hidden swear words in text. Usage: ``` finder = BadWordDetector.new finder.find("What the #uck") it will return BadWord object ``` Transformation rules is defined in form: {"#" => {"symbol"=>"f", "weight" => 2}} (where weight is optional) in file conf/rules.yaml List of swear words is located in conf/library.yaml Whitelist of english words in conf/whitelist.yaml You can also set own rules: finder = BadWordDetector.new rules, library, whitelist

installgem install bad_word_detector
Authors

Fedotov Daniil

4,095 total downloads 927 for this version
Owners

Bd0c726ed9ba3b7295d2f3ae01508cc9

Gemfile
gem 'bad_word_detector', '~> 0.0.5'
Versions
  1. 0.0.5 March 16, 2013 (757 KB)
  2. 0.0.4 March 15, 2013 (756 KB)
  3. 0.0.3 March 15, 2013 (756 KB)
  4. 0.0.2 March 15, 2013 (756 KB)
  5. 0.0.1 February 26, 2013 (756 KB)
Development Dependencies
  1. redcarpet >= 0
  2. yard >= 0