Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Put another nickel in the swearjar. Simple profanity detection with content analysis.
Ruby
Branch: master
Pull request Compare This branch is 2 commits ahead, 20 commits behind joshbuddy:master.
Failed to load latest commit information.
config
lib
spec
Gemfile
Gemfile.lock Upgrading rspec to latest
README.rdoc
Rakefile
VERSION
swearjar.gemspec

README.rdoc

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'
Something went wrong with that request. Please try again.