Skip to main content

The context you need, when you need it

When news breaks, you need to understand what actually matters — and what to do about it. At Vox, our mission to help you make sense of the world has never been more vital. But we can’t do it on our own.

We rely on readers like you to fund our journalism. Will you support our work and become a Vox Member today?

Join now

Want a State of the Union that’s 50% Obama and 50% Jefferson? There’s an app for that.

There’s pretty much no chance that President Obama’s State of the Union address will make everyone happy.

But this tool might.

To be clear, it’s not an alternative to watching or listening to the actual speech. You should definitely do that.

But, in addition, you can use the nonpartisan Sunlight Foundation’s State of the Union Machine to create remarks that are specially designed for you, based on the words of your favorite presidents.

Screen_Shot_2015-01-20_at_6.03.50_PM.0.png

The Sunlight Foundation

The “machine” lets you adjust the amount of input from presidents from Obama, to Reagan to Roosevelt. Then, you can hover over each line of your personalized fantasy speech to see whose words inspired it.

It gets a little more technical than that. If you're as interested in things like "n-gram models" as you are in politics, you'll want to check out the Sunlight Foundation's explanation:

The State of the Union Machine uses models of language to randomly generate text based on different presidents’ previous speeches. These models are called “n-gram models” or “Markov models,” and are used in many places, from machine translation to DNA sequencing. There is one model for each president, and each sentence is generated using a single model, using inputs from the previous sentence as context.

The models are trained on a corpus of text, and they learn about the probability of a word given its preceding context. It’s a bit like a robot that learns how to fill in the blanks. For instance: Models trained on recent presidents have learned that the words “my fellow” are frequently followed by the word “Americans.”

Our models were trained on previous State of the Union deliveries, which are archived by researchers at the University of California, Santa Barbara’sAmerican Presidency Project. They were trained using the Natural Language Toolkit’s language modeling tools.

Enjoy!

See More:

More in archives

archives
Ethics and Guidelines at Vox.comEthics and Guidelines at Vox.com
archives
By Vox Staff
Supreme Court
The Supreme Court will decide if the government can ban transgender health careThe Supreme Court will decide if the government can ban transgender health care
Supreme Court

Given the Court’s Republican supermajority, this case is unlikely to end well for trans people.

By Ian Millhiser
archives
On the MoneyOn the Money
archives

Learn about saving, spending, investing, and more in a monthly personal finance advice column written by Nicole Dieker.

By Vox Staff
archives
Total solar eclipse passes over USTotal solar eclipse passes over US
archives
By Vox Staff
archives
The 2024 Iowa caucusesThe 2024 Iowa caucuses
archives

The latest news, analysis, and explainers coming out of the GOP Iowa caucuses.

By Vox Staff
archives
The Big SqueezeThe Big Squeeze
archives

The economy’s stacked against us.

By Vox Staff