Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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');

About

No description, website, or topics provided.

Resources

Releases

No releases published

Languages

You can’t perform that action at this time.