Skip to content

tsnolan23/comment-toxicity-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fight Toxicity with Perspective API

In an effort to combat toxicity on the internet, the Perspective API uses machine learning to attempt to determine the toxic intent of a comment. This repo uses that API to compare the toxic probability of the comment to a threshold in the application to deem if it would allowed or not.

Check out the demo to see it in action!

Screen Shot 2019-05-26 at 11


Local Setup

  1. Clone this repository with git clone https://github.com/tsnolan23/comment-toxicity-filter
  2. Change into the repo directory with cd comment-toxicity-filter
  3. Install dependencies with yarn install
  4. Rename the .env.example file to .env
  5. Provide a Google API key with the Perspective API enabled in the .env file
  6. Start up the app yarn start

About

Use the Perspective API to filter potential toxic comments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages