juniorxsound / perspective-hacks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perspective Hacks

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.

Get API Key

Follow the Perspective API Quickstart to get an API Key and assign it in common/toxicity-analyzer.js

Setup

  • checkout project
  • run npm install
  • run npm run build

4 Chrome extensions will now be ready for testing in the dist folder.

Installing Chrome Extensions

Follow Load The Extension from Chrome Developers to install and test each extension locally.

The Hacks

  • 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.

Note

This is example code to help experimentation with the Perspective API; it is not an official Google product.

About

License:Apache License 2.0


Languages

Language:TypeScript 61.7%Language:JavaScript 25.4%Language:CSS 7.7%Language:HTML 5.2%