ginatrapani/ThinkUp — pull request #2016 by gbrady92 (2014-06-22 19:17:28+00:00)
Title: 1907 Twitter Ratios Insight

Hey Anil and Gina,
Just finished off this insight. First off before I get into the details of the insight I'd like to apologize for not defining the insight using the template, I completely forgot about that step until the insight was basically completed.

The insight works like this:
* All twitter posts and favorites from the last 7 days are passed into the insight. Next the insight makes a count of the each type of post.

* If a user has only made one type of post, such as only replying to other users. The insight text will inform the user of this and encourage the user to use Twitter's other features.

* If the user has multiple types of post their 2 counts are selected randomly and switched to ensure no number is being compared to a 0 value or to itself (i.e no replies:replies ratios). Once this is done the ratio is calculated and the answer is passed into insight terms to make it more interesting for the user. I don't include any feedback here as I felt the insight became a bit wordy.

* A random twitter post is displayed with the text. This will always be related to the ratio.

![twitter ratios](https://cloud.githubusercontent.com/assets/4369596/3352337/55b5b5dc-fa41-11e3-9f52-2a9b7185e221.PNG)