This repository contains a collection of experiments to analyze toxicity levels in comments from a selection of news publishers. Each experiment is a Chrome Extension that uses the Perspective API to determine the toxicity levels of comments within the page.
Follow the Perspective API Quickstart to get an API Key and assign it in common/toxicity-analyzer.js
- checkout project
- run
npm install
- run
npm run build
4 Chrome extensions will now be ready for testing in the dist
folder.
Follow Load The Extension from Chrome Developers to install and test each extension locally.
- Toxicity Timeline: See exactly when negative conversations happen and discover the patterns behind them.
- Hot Topics: Compare unpublished articles with others that have created debate - before you push them live.
- Comment Blur Filter: Easily find and hide comments based on your tolerance for toxicity.
This is example code to help experimentation with the Perspective API; it is not an official Google product.