Skip to content

garrickbrazil/blasphemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages