text-toxicity-detector
v1.0.2
Published
This Package can detect how much toxicity persent in your text and return you toxicity Percentage in text, toxic words used in text & list of toxic word uses in the given text.
Maintainers
Readme
text-toxicity-detector
A library which can detect toxicity in text content and then return the total toxicity text cotain with the toxic word found in text and also the toxic word count. This library is 98% accurate in detecting toxicity in text content
Installation
Install text-toxicity-detector with npm
npm i text-toxicity-detectorFor ES Module
import textToxicityDetector from "text-toxicity-detector";Documentation
const text = "You are a piece of shit.";
const result = textToxicityDetector(text);
console.log(result);Output
{
toxicityPercentage: '33.33',
toxicWordsFound: 2,
toxicWordsList: [ 'piece', 'shit' ]
}
