Profanity Power Index


The Profanity Power Index is a program that tracks the usage of profanity for specified targets on the Twitter public timeline, bundled with an interactive data visualization built with D3.js.

Naturally the target for this has been politicians. I've run it during several of the Republican presidential primary debates as well as during the general election debates between Donald Trump and Hillary Clinton. You can probably guess what those plots look like. In principle you can run this through any trackable term, but honestly no target's more fun than watching people curse at politicians in real time.

From a technical perspective there have been several iterations: the first was a Scala program that ran on Spark and wrote to HDFS, with the visualization built with a Clojure templating engine. Though there were a couple in between, the latest version is 100% Clojure, and writes to Elasticsearch.

Code:  https://github.com/timothyrenner/ProfanityPowerIndex

Relevant Posts:


The October 19, 2016 presidential debate between Donald Trump and Hillary Clinton. Such a nasty debate.

The October 9, 2016 presidential debate between Donald Trump and Hillary Clinton.

The March 3rd, 2016 Republican Primary debate on Fox News, in which Donald Trump referred to the size of his ... not hands.

The October 13th, 2015 Democratic Primary debate hosted by CNN, where Bernie Sanders was "tired of Hillary Clinton's damned emails."

The September 16th, 2015 Republican Primary debate hosted by CNN, in which we suddenly remember at one point Mike Huckabee ran in this primary.

The August 6th, 2015 Republican Primary debate on Fox News. I got nothing for this one. Total shitshow.