State of the Union: The words, the facts, the data

Published on February 5th 2019

Here’s the data behind President Trump’s 2019 State of the Union address.

We analyzed the words in his latest address to Congress, alongside every such speech since 1980. From immigration to war, here’s an analysis of each president’s words.

Share Newsletter


The State of the Union is a Constitutionally-required address from the president to both branches of Congress. It serves to update the country on the current conditions of our democracy. Technically, a president’s first address to Congress is not a State of the Union, but it serves the same purpose and merits inclusion.

To create the analysis, we used transcripts from the American Presidency Project and used R to compile the text and count word frequency. Common words (“and”, “the”, etc.) and words that occur frequently in the entire corpus (“states”) are largely filtered out. The 2018 word count is based upon the speech transcript distributed prior to delivery.

More information, including sources, is available by clicking on the legend, which will navigate to each individual metric page.

The following metrics have been adjusted for inflation: median annual wage, GDP per capita, private fixed investment (non-residential), individual income taxes paid, corporate taxes paid.

R code snippet

Pre-condition: SOTU addresses are separately stored in working directory (i.e. 1980.txt)

 for (year in 1980:2017) {

 corpus<-scan(paste(year,".txt",sep = ""),"character",sep="");

 #Split corpus
 words<-strsplit(corpus," ");

 #Calculate word counts
 words <- unlist(words);

 result <- data.frame(names(words.freq), as.integer(words.freq));
 write.table(result, file = paste(year,".csv",sep = ""), row.names=FALSE, col.names=FALSE, sep = ",");



Post-condition: Words and counts are stored as a csv file (i.e. 1980.csv)

Other Features

  • Food Stamps (SNAP)

    Food Stamps

    A state-by-state look at how prevalent food assistance programs are across America.

    See our interactive map
  • HIV


    The fight against HIV and AIDS has been ongoing since the 1980s. Here’s the government’s data and how many people have been affected and how far the epidemic has fallen.

    View the Report
  • Is Social Security Sustainable?

    Social Security

    The Social Security Administration predicts that in 2018 payments will begin to exceed income for the program.

    View the Report
  • US Immigration Throughout History

    Immigration History

    Explore US immigration policies and programs throughout history.

    View the Report
  • Immigration


    Explore the total number of immigrants to the US over time, the purpose for their visit, and their countries of origin.

    View the Report
  • 2019 Budget Proposal

    2019 Budget Proposal

    The White House released the proposed budget for 2019 and beyond. Check out the President’s proposed changes to spending by agency and program.

    View the Report
  • Tax Policy

    Tax policy

    Tax policy is at the top of the agenda in the US. Get the facts you need to evaluate the proposed changes.

    View the Reports
  • 2018 Presidential budget

    2018 Presidential budget

    Congress needs to pass a budget by year’s end. Check out the President’s revenue and spending proposals, and see what the nonpartisan Congressional Budget Office has to say about them.

    View the ReportPlay the Video
  • Interstate Population Migration

    Interstate Population Migration

    For a comprehensive view on interstate migration patterns, please read our interactive report based on federal individual income tax returns as analyzed by the IRS.

    View Report