Skip to content
Playing with Language Universals, US presidents, and NLTK
Branch: master
Clone or download
Latest commit 6a682ca Apr 13, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md 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
unconditionally.py change parchment Apr 13, 2017

README.md

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 unconditionally.py

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.