Skip to content

Change all the nouns in English text to "nurble" using NLTK. Concept by Zach Weiner.

Notifications You must be signed in to change notification settings

johnradke/nurble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

nurble

Changes all the nouns in English text to "nurble" using the Natural Language Toolkit. The concept comes from webcomic artist Zach Weiner, who initially brainstormed the idea in this series of tweets, and later made a webcomic out of the idea.

This script uses the Natural Language Toolkit to parse the sentences and tag the parts-of-speech of words in order to replace everything besides the nouns with "nurble".

To Run

  1. Ensure Python is installed.
  2. Install the Natural Language Toolkit from here: http://nltk.org/install.html
  3. Run the Python interpreter, and type the following commands:
import nltk
nltk.download()
  1. Once the "NLTK Downloader" GUI opens, go to the Models tab and download the "punkt" model.
  2. Close the NLTK Downloader and exit the Python interpreter.
  3. Run the following to nurble-ize the provided example (Ezekiel 25:17, better known as Samuel L. Jackson's speech from Pulp Fiction):
python nurble.py example.txt

About

Change all the nouns in English text to "nurble" using NLTK. Concept by Zach Weiner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages