Skip to main content

A Sentiment Analysis of President Trump's Inaugural Address

The day has come and gone on this 20th of January in 2017. Donald Trump has been sworn in as the 45th President of the United States, and like his predecessors, Trump gave an inaugural address during today's ceremony. Lots of pundits, of course, have spent today closely analyzing, scrutinizing, praising, and whatever-else-ing Trump's speech. Like everyone of these pundits, I have personal thoughts about the events that have transpired today as well, but, rather than simply contribute to the discordant cacophony of punditry a contrived opinion of my own, I'm choosing to do something more constructive (or at least less politically volatile) in an effort to offer something of novel import to discussion about President Trump's address. Rather than qualitatively sift through every word and nuance of Trump's inaugural address, I'll do something political science-y: use some textual analysis techniques to leverage quantifiable insights from Trump's speech.

The Method
To analyze Trump's address, I utilized a dictionary method of text analysis that relies on the NRC Emotion Lexicon -- a set of crowd-sourced word-emotion and word-sentiment associations. This lexicon contains word associations with eight emotions (anger, fear, anticipation, trust, surprise, sadness, joy, and disgust) and with two sentiments (positive and negative). I used R statistical software for my analysis. To offer a fuller overview of sentiment and emotion in Trump's address, I broke down his speech by sentence so that I could capture and display, in order, a timeline of variation in sentiment valence and the fluctuation of various emotions in his speech from start to finish.

Variation in Positive vs. Negative Sentiment
The below figure displays the sentiment valence (i.e., the fluctuation in positive vs. negative sentiment) in Trump's inaugural address from beginning to end.



It seems that Trump kept things mostly positive. Positive sentiment spiked to its highest level (+6) early in his address, and for the majority of his speech thereafter, spikes in positive sentiment appear to significantly outweigh the valleys of negative sentiment (which go as low as -2) that punctuate his address.

Maintaining a mostly positive message (of course positive is a relative term when it comes to politics) likely serves Trump well, as it would any incoming president. Sending positive signals to one's base can certainly win any politician political points among supporters.

Emotions in Trump's Speech
Regarding the eight emotions detectable using the NRC Emotion Lexicon, the below figure reveals some telling semantic patterns in Trump's address.



Two notable patterns stand out. Most importantly, as Trump's speech progresses an increase in anticipation is clearly present as the address approaches its end. Furthermore, both joy and trust appear in comparatively high proportions relative to other emotions; however, fear and surprise, along with anger, make punctuated appearances. The overall trend in Trump's inaugural address, therefore, seems to be one of mounting anticipation with gestures of joy and trust playing important supporting roles; but, some negative emotions (anger most tellingly, which spikes to +4 at one point) occasionally arise. Disgust and sadness also are detected, but the frequency and magnitude of their appearances are not all that substantial.

Conclusion
So, based on the numbers at least, Trump appears to have issued a relatively positive inaugural address, one that was intended to build anticipation and convey joy and trust, but which did contain some negativity as well. Of course, to better put this address in context it might be good to compare these results to an analysis of President Obama's, and other past presidents', inaugural addresses in future posts (perhaps as a part of a series...what fun!).
___________________________________________

Learn more about how I did the above analysis by checking out this project on my GitHub:  Inaugural Address of Donald Trump

Comments

Popular posts from this blog

A Network Analysis of Foreign Aid Commitments

International Relations scholars often talk about the "diffusion" of norms, behaviors, security worries, etc. throughout the international system. Foreign aid policy is one such norm -- one that developed, democratic countries often are peer-pressured into sharing. But which countries lead the way in terms of aid commitments? Why Network Analysis? The study of networks in the social sciences has largely been restricted to sociology; however, more recently, other fields such as political science (international relations in particular) have adopted network science as a tool in the study of social phenomena. Networks provide a visually intuitive graphical representation of the multiple connections among numerous actors. Aside from being a visually appealing representation of a network of relationships, network analysis of the international system helps to bring to light (and also account for) the fact that international politics is inherently multilateral . Most analyses in

What Factors Explain Variation in Median Household Income?

While this election season has a particular candidate caricaturing himself as a "law and order" candidate, violence and crime are far from what ails this country. Most reports show that crime is down across the U.S., and while police deaths (and really all deaths) are tragedies in their own right, this issue has been largely exaggerated. These are certainly important problems, but many of the issues that impact the majority of Americans are economic and social in nature. Regarding the economic problems, household income is a particularly important issue. So, in continuation with the theme of my last post, I'd like to present some of my findings from an analysis I did of the factors associated with variation in median household income in 229 U.S. metropolitan areas. I'll try to give the least technical presentation that I can of the data as I discuss my findings. ***A quick disclaimer on causation: Statistical models are amazing tools, but it's often the respo

"#POTUS" -- A Snapshot into How Twitter Users Feel about the President

Sentiment expressed on social media is far from a scientific poll of the overall population's feelings toward President Trump, but it can offer a valuable measure of expressed attitudes within the online public square. Below are two figures that offer telling insights into current discussion of "#POTUS" among Twitter users as of February 25, 2017 (the day of this writing). Using the NRC Emotion Lexicon in R, I analyzed a dataset of 2,896 Tweets tweeted by 2,455 unique Twitter users that I scraped just this afternoon. [ Note : I'm still collecting more Tweets as I write this post, and it'll take some time before I have a sizable dataset.] The positive vs. negative sentiment score counts per Tweet clearly lean positive. Much of this positive sentiment, as the below figure shows, likely results from a substantial amount of trust that appears in several Tweets that contain #POTUS. While fear , anger , sadness , and disgust all make showings, trust , joy ,