No description, website, or topics provided.
HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Artifacts
blasphemy.js
demo.html
readme.md

readme.md

Blasphemy

A simple offline javascript solution to checking and filtering profanity. Simply import blasphemy.js and get started!

The primary funciton to be used is blasphemy.judge('go badword yourself, '*') which will return the following response:

{ 
   input: "go badword yourself",
   filtered: "go ******* yourself",
   isProfane: true,
   profanePhrases: ["badword"],
   error: false 
}

Examples and other shortcuts:

// full service
var obj = blasphemy.judge('some input', '*');

// some other shortcuts
var string = blasphemy.censor('some input', '*');
var stringArray = blasphemy.profanePhrases('some input');
var bool = blasphemy.isProfane('some input');