Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMinimalist synonym replacement #97
Comments
This comment has been minimized.
This comment has been minimized.
|
Everything about this is great, including the introductory PG text: This work is nothing It is mostly And beyond: A tramping of sea he was still from the wharf Plus I like the [w:2]+ in the code which is just there to ensure the output starts with "***The Project." |
This comment has been minimized.
This comment has been minimized.
|
Also, I found that 2 words of context before a word and 0 words after seems to be interesting. 2 words before and 1 word after seemed to change very little except a few closed-class words. |
I made a quick #NNNGM (Nano-NaNoGenMo) entry—a <256 character Python program that replaces every word in stdin at random with another word that occurred in the same 1-word window context (i.e., the word before and the word after). This is effectively a (very) minimalist version of replacing words with their nearest-neighbor word vector "synonym."
It's pretty easy to trawl through this to find weird poetic bits: