Mining politicians' tweets with R: Theresa May vs Jeremy Corbyn
The twitter stream of any person contains rick social data that can unveil a lot about that person. In this analysis we will look at Prime Minister Theresa May and Labour party leader Jeremy Corbyn's Twitter profiles. Which words do they use most? What does the sentiment analysis show?
Here is an analysis of May and Corbyn's Twitter profiles...
1. Word analysis
Theresa May mostly tweets about 'Brexit', and 'Britain', while Corbyn's top words are 'labour', 'people', and 'government.
![]() |
The most common words that Theresa May tweets are Brexit, people, country and Britain. |
![]() |
Most common words that Jeremy Corbyn uses in his tweets are; labour, government, people and forthemany |
2. Positive and negative words
Theresa May's top negative word is 'hard, and positive word is 'support'. Jeremy Corbyn uses negative word 'crisis' the most as well as the positive word 'supportive'.
![]() |
The top negative words used by Theresa May are; hard, loneliness, lost, attack. The top positive words are; support, congratulations, strong, proud. |
![]() |
The top negative words from Corbyn's tweets are; crisis, attack, failure, and the positive words are; support, win, protect and proud. |
3. Sentiment analysis
Sentiment analysis showed that both politicians mostly tweets positive words, however, negative tweet score of Corbyn is higher than May's.
![]() | |
Sentiment analysis of @theresa_may's tweets |
![]() |
Sentiment analysis of @jeremycorbyn's tweets |
Yorumlar
Yorum Gönder