Zaarly Swearjar

Simple profanity detection with content analysis.

Installation

gem install swearjar

Usage

require 'swearjar'

Swearjar.default.profane?('jim henson has a massive hard on he is gonna use to fuck everybody')
<< true

Swearjar.default.scorecard('jim henson has a massive hard on he is gonna use to fuck everybody')
<< {:sexual => 2}

Swearjar.default.censor('jim henson has a massive hard on he is gonna use to fuck everybody')
<< 'jim henson has a massive **** ** he is gonna use to **** everybody'