Google's Perspective is an API that aims to keep micturitors from fouling community swimming pools.
Perspective is an API that makes it easier to host better conversations. The API uses machine learning models to score the perceived impact a comment might have on a conversation. Developers and publishers can use this score to give realtime feedback to commenters or help moderators do their job, or allow readers to more easily find relevant information, as illustrated in two experiments below. We'll be releasing more machine learning models later in the year, but our first model identifies whether a comment could be perceived as "toxic" to a discussion.
Check out the slider bar example and the writing example here. It seems to work pretty well!
Wikipedia, The NY Times, The Economist, and The Guardian experimenting with the technology to help them approve/disapprove of comments more quickly.