Skip to content

mmeisels/swearjar-node-anz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swearjar-node

Profanity detection and filtering library. Taken from Raymond's version and extended for ANZ swear words etc

Installation

npm install --save swearjaranz

Usage

swearjar.profane(text)

Returns true if the given string contains profanity.

var swearjar = require('swearjar');
swearjar.profane("hello there"); // false
swearjar.profane("hello mother f-bomb"); // true

swearjar.censor(text)

Replaces profanity with asterisks.

var clean = swearjar.censor("f-bomb you"); // **** you

Acknowledgements

swearjar-node is based on Swearjar (Ruby) and Swearjar PHP.

About

SwearJar ANZ Version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published