Skip to content
Playing with Language Universals, US presidents, and NLTK
Branch: master
Clone or download
Latest commit 6a682ca Apr 13, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information. correct spelling Jan 14, 2017
index.html change parchment Apr 13, 2017
unconditionally.html initial commit Dec 21, 2016
unconditionally.ipynb initial commit Dec 21, 2016 change parchment Apr 13, 2017

Unconditionally Universal Speeches

People speak a lot.

For example: politicians when they hold a speech.

Or me, about this project on Medium.

Playing with the linguistic concept of Language Universals, I wrote some code that weeds through speeches, taking out everything except nouns and verbs. Reading it in the aftermath allows the reader a maybe pensive, maybe revealing, but most probably just ten-seconds-fun-amusing, digest of some past US president's mumblings.

Example Project Output from JFK.

Hope you'll enjoy : )

To Run

Put on some shoes and go outside. Move feet swiftly.

To Run the code

  • either follow along my steps inside the unconditionally.ipynb file (You'll need to have Jupyter Notebooks for that)
  • or use just the python file

Both require a Python 3 environment.

Simply enter the name of one of the state_union speeches into the get_real() function. Press what you need to press. Open index.html. 🎉

You can’t perform that action at this time.