Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 972 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 972 Bytes

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