Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

TransitJohn

(6,932 posts)
Thu Aug 11, 2016, 11:12 AM Aug 2016

Text analysis of Trump's tweets confirms he writes only the (angrier) Android half

This is a, to me, super-interesting article! I love data analysis. Check it out.

I don’t normally post about politics (I’m not particularly savvy about polling, which is where data science has had the largest impact on politics). But this weekend I saw a hypothesis about Donald Trump’s twitter account that simply begged to be investigated with data:


When Trump wishes the Olympic team good luck, he’s tweeting from his iPhone. When he’s insulting a rival, he’s usually tweeting from an Android. Is this an artifact showing which tweets are Trump’s own and which are by some handler?

Others have explored Trump’s timeline and noticed this tends to hold up- and Trump himself does indeed tweet from a Samsung Galaxy. But how could we examine it quantitatively? I’ve been writing about text mining and sentiment analysis recently, particularly during my development of the tidytext R package with Julia Silge, and this is a great opportunity to apply it again.

My analysis, shown below, concludes that the Android and iPhone tweets are clearly from different people, posting during different times of day and using hashtags, links, and retweets in distinct ways. What’s more, we can see that the Android tweets are angrier and more negative, while the iPhone tweets tend to be benign announcements and pictures. Overall I’d agree with @tvaziri’s analysis: this lets us tell the difference between the campaign’s tweets (iPhone) and Trump’s own (Android).
The dataset

First we’ll retrieve the content of Donald Trump’s timeline using the userTimeline function in the twitteR package:1


Much more with code and pictures at: http://varianceexplained.org/r/trump-tweets/
1 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Text analysis of Trump's tweets confirms he writes only the (angrier) Android half (Original Post) TransitJohn Aug 2016 OP
Interesting. Tommy_Carcetti Aug 2016 #1

Tommy_Carcetti

(43,182 posts)
1. Interesting.
Thu Aug 11, 2016, 11:25 AM
Aug 2016

I have no doubt that Trump's most unhinged tweets are written by Trump himself and not outsourced to staff as is typical for most normal politicians. They're written in exactly his own unique NPD language.

Latest Discussions»General Discussion»Text analysis of Trump's ...