https://github.com/iandunn/compassionate-comments
A WordPress plugin that uses AI to encourage authors of toxic comments to re-phrase them in a more kind way.
https://github.com/iandunn/compassionate-comments
comment-moderation cyberbullying toxic-comments wordpress-plugin
Last synced: about 1 year ago
JSON representation
A WordPress plugin that uses AI to encourage authors of toxic comments to re-phrase them in a more kind way.
- Host: GitHub
- URL: https://github.com/iandunn/compassionate-comments
- Owner: iandunn
- Created: 2016-09-12T23:54:44.000Z (almost 10 years ago)
- Default Branch: develop
- Last Pushed: 2022-10-07T18:22:08.000Z (over 3 years ago)
- Last Synced: 2025-03-30T23:51:09.626Z (about 1 year ago)
- Topics: comment-moderation, cyberbullying, toxic-comments, wordpress-plugin
- Language: JavaScript
- Homepage: https://wordpress.org/plugins/compassionate-comments/
- Size: 920 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Compassionate Comments
Why do we have tools to check our spelling, but not to check if we're being kind to each other?
This plugin checks the intent of a comment before it's submitted. If the author is being rude or disrespectful, it will encourage them to think twice, and give them a chance to rephrase their comment to be more kind before they submit it.
Google's free [Perspective API](https://www.perspectiveapi.com/) is used to determine the characteristics of the comment, which means that all comments will be sent to their servers for analysis. You can optionally request that they not store your comments for their future research.
The Perspective API can only analyze comments written in English, Spanish, and French. Comments written in other languages will be accepted without any analysis or content warnings.
The inspiration for this comes from Tristan Harris' TED talk about [designing technology to reflect human values](https://www.youtube.com/watch?v=D55ctBYF3AY), and from [ReThink](http://www.rethinkwords.com/).
## Example

## Setup
If you just want to **use** the plugin, you can [install the packaged version](https://wordpress.org/plugins/compassionate-comments/) from the WordPress.org plugin repository.
If you want to **contribute to** the plugin, then follow these steps to setup the development version:
* `git clone https://github.com/iandunn/compassionate-comments.git`
* `cd compassionate-comments`
* `npm install`
* `npm start`
After the initial setup, simply run `npm start` while you're editing files.
To build the distributed version, run `npm run build`.