Skip to content

lit26/Trump_Tweet_Analysis

Repository files navigation

Trump_Tweet_Analysis

Analysis of Trump's original twitter posts.

Data Source

Trump Twitter Archive: https://www.thetrumparchive.com/

Here I am using the tweets from 2016-01-01 to 2020-11-07. There are total 28725 original twitter posts.

Data Analysis

Tweet Frequency

tweet_frequency

There are more posts during 2019 and 2020.

Top Words

Top single words

word_cloud top_words

Top bigram words

top_biwords

Top trigram words

top_triwords

Word Complexity

word_complexity

Topic Modeling

The dataset is cluster into 9 topics

Topic
1 president, trump, election, poll, show, day, watch, news, washington, true, live, donald, political, 2016, presidential, office, called, force, greatest, interview
2 year, country, job, china, back, economy, million, number, usa, trade, world, money, good, record, dollar, billion, coming, including, business, tariff
3 great, military, total, love, strong, crime, support, endorsement, job, governor, state, honor, congratulation, complete, senator, woman, incredible, amendment, vet, fight
4 time, people, american, thing, administration, family, long, york, general, obama, week, friend, coronavirus, remember, terrible, thought, hope, action, open, month
5 democrat, republican, biden, joe, dems, history, party, senate, impeachment, call, pelosi, schiff, nancy, wrong, radical_left, crazy, run, sleepy, left, read
6 people, american, border, country, work, wall, bill, stop, order, end, law, government, mexico, give, back, city, act, important, problem, congress
7 great, america, big, vote, make, win, tonight, twitter, maga, day, court, florida, john, join, carolina, rally, trump2016, pennsylvania, tomorrow, crowd
8 fake_news, medium, hillary, bad, clinton, russia, campaign, story, crooked, fbi, report, hunt, witch, totally, mueller, collusion, case, corrupt, fake, wow
9 state, today, house, united, deal, good, made, north, white, meeting, leader, happy, pm, talk, enjoy, morning, korea, continue, iran, statemen

Topic Distribution

topic_distribution

Topic Word Cloud

topic1 topic2 topic3 topic4 topic5 topic6 topic7 topic8 topic9