Skip to content
Use the Perspective API to filter potential toxic comments
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.env.example
.gitignore
README.md
package.json
yarn.lock

README.md

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
You can’t perform that action at this time.