New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

profanity-analysis

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

profanity-analysis

Not all bad words are equal. This filter rates a blob of text based off bad words to determine if the blob is too vulgar to use.

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

profanity-analysis

Not all bad words are equal. This filter rates a blob of text based off bad words to determine if the blob is too vulgar to use.

How To use.

var filter = require('profanityAnalysis'); var results = filter.analyzeBlob(yourString);

the returned results will contin the following object. { indexOfProfanity: [], //Array consisting of the indexes of bad words and the weight the bad word is givin in the config. score: 0, //The total profanity weight values added together precentage: 0 //The total number of words over the weight value of the profantiy - totalWords/score };

Keywords

curse

FAQs

Package last updated on 16 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts