https://github.com/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.
https://github.com/robertjgabriel/profanity
college-project machine-learning profanity profanity-rates review-text suitable
Last synced: over 1 year ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/robertjgabriel/profanity
- Owner: RobertJGabriel
- Created: 2015-10-25T01:30:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-05T11:54:05.000Z (over 10 years ago)
- Last Synced: 2025-01-13T14:53:06.126Z (over 1 year ago)
- Topics: college-project, machine-learning, profanity, profanity-rates, review-text, suitable
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
```js
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
[](http://www.projectbird.com) |
---|---
[Robert Gabriel](http://www.projectbird.com) |
## License
MIT © [Robert Gabriel](http://www.projectbird.com)