text-toxicity-detector

1.0.2 • Public • Published

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-detector

For 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' ]
  }
  

Authors

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i text-toxicity-detector

    Weekly Downloads

    5

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    3.65 kB

    Total Files

    6

    Last publish

    Collaborators

    • abhishekchamoli