Skip to content

Instantly share code, notes, and snippets.

View phillipkent's full-sized avatar

Phillip Kent phillipkent

View GitHub Profile
@phillipkent
phillipkent / nplustransform.py
Last active December 15, 2015 22:19
N-plus-transform: An implementation in Python of the Oulipo 'S+7' ('noun + 7') text transformation. [http://www.oulipo.net/contraintes/docs/s-7 , http://www.spoonbill.org/n+7/ ] Requires the NLTK toolkit http://nltk.org, and uses a nouns list sourced from http://www.ashley-bovan.co.uk/words/partsofspeech.html
'''
Created on 14 Mar 2013
@author: phillip
INCOMPLETE CODE UNDER DEVELOPMENT
'''
# Oulipo's 'N plus' transformation for text
#
# Words list 'nouns91k.txt' contains 91000 nouns, found at
# http://www.ashley-bovan.co.uk/words/partsofspeech.html