RobertJGabriel / profanity

Profanity rates and reviews text, to see if its suitable. Enter a word and it will simply return a value of true or false, depending on whether or not the word is classed as profanity. Based off googles profanity check.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Profanity rates and reviews text, to see if its suitable. Enter a word and it will simply return a value of true or false, depending on whether or not the word is classed as profanity. Based off googles profanity check.

Install

$ npm install --save profanity

Usage

var profanity = require("./profanity.js");
var chalk = require('chalk');

    profanity("sex", function (response) {
        if (response === "false") {
            console.log(chalk.blue(response));
        } else {
            console.log(chalk.red(response));
        }
    });

Team

Robert Gabriel | ---|--- Robert Gabriel |

License

MIT © Robert Gabriel

About

Profanity rates and reviews text, to see if its suitable. Enter a word and it will simply return a value of true or false, depending on whether or not the word is classed as profanity. Based off googles profanity check.


Languages

Language:JavaScript 100.0%