Google is currently working on an algorithm that measures 'Toxicity' of comments, known as Perspective. The program is in its infancy at the moment, but I am concerned with the possible uses of this in the future.
Summary here:

Link to PerspectiveAPI is in the description of the video.