Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
client
server
README.md
index.js
package.json

README.md

title permalink layout plugin
talk-plugin-toxic-comments
/plugin/talk-plugin-toxic-comments/
plugin
name provides
talk-plugin-toxic-comments
Server
Client

Using the Perspective API, this plugin will warn users and reject comments that exceed the predefined toxicity threshold. For more information on what Toxic Comments are, check out the Toxic Comments documentation.

Configuration:

  • TALK_PERSPECTIVE_API_KEY (required) - The API Key for Perspective. You can register and get your own key at http://perspectiveapi.com/.
  • TALK_TOXICITY_THRESHOLD - If the comments toxicity exceeds this threshold, the comment will be rejected. (Default 0.8)
  • TALK_PERSPECTIVE_API_ENDPOINT - API Endpoint for hitting the perspective API. (Default https://commentanalyzer.googleapis.com/v1alpha1)
  • TALK_PERSPECTIVE_TIMEOUT - The timeout for sending a comment to be processed before it will skip the toxicity analysis, parsed by ms. (Default 300ms)
  • TALK_PERSPECTIVE_DO_NOT_STORE - Whether the API is permitted to store comment and context from this request. Stored comments will be used for future research and community model building purposes to improve the API over time. (Default true) Perspective API - Analize Comment Request