-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand-filter: a novel-length expansion of a sentence #66
Comments
I'm reminded of Gnostic letter expansion, as described in Irenaeus's Adversus haereses (Book 1, Chapter 14):
|
Similar as well to NaNoGenMo-2014 entry "The Definition Book" by @samcoppini |
I knew the idea seemed familiar :D On Sat, Nov 7, 2015 at 10:59 PM Greg Kennedy notifications@github.com
|
Filter source: https://github.com/enkiv2/NaNoGenMo-2015/blob/master/expand-filter.py
Main program: https://github.com/enkiv2/NaNoGenMo-2015/blob/master/expand-filter.sh
Finished novel (expanded from "The spirit is willing but the flesh is weak"): https://github.com/enkiv2/NaNoGenMo-2015/blob/master/expanded.md
This filter expands text piped into it by looking up each word on wordnik and replacing it with a randomly chosen definition. Definitions are memoized and stored (along with wordnik authentication info and a list of words with no wordnik definitions) in a pickle file, to minimize api accesses. The expand-filter.sh script takes input from stdin and, upon stdin being closed, runs that text through many iterations of expand-filter.py until the result is more than 50k words.
The text was updated successfully, but these errors were encountered: