ginatrapani/ThinkUp — pull request #2042 by gbrady92 (2014-07-23 12:23:56+00:00)
Title: Twitter Ratios Insight, creates and displays ratios based off a users Twitter Activity.

Suggested changes have been made.

The version of the insight works like this:

All twitter posts and favorites from the last week,month,year 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.
![screenshot from 2014-07-23 13 19 17](https://cloud.githubusercontent.com/assets/4369596/3672737/326dab4e-1264-11e4-9076-f9c6eebb299e.png)