NaNoGenMo / 2018

National Novel Generation Month, 2018 edition.
https://nanogenmo.github.io/
112 stars 6 forks source link

Acrostic explosion #87

Open WhistleOfTroy opened 6 years ago

WhistleOfTroy commented 6 years ago

An acrostic is a poem (or other form of writing) in which the first letter (or syllable, or word) of each line (or paragraph, or other recurring feature in the text) spells out a word, message or the alphabet.

How this novel is written: you input a message. Each word from that message is turned into a sentence where each word starts with the initial words letters. Like the word novel turns to something like

 Nonsense outcome visit evenly leasing.

Then this sentence turns to

Nonsense overseer nod suddenly electricity nervously specs endangered.
Outsized ultimatum trap courageously outcome monthly embroidery.
Visit inert spies inflate tensely.
Especially volcano embryo nail long-held youngster.
Lovingly epilepsy adventurously seizure inform nail grande.

And it just goes on expanding like this for 50 000 words. Words list is taken from corpora mostly.

Messy source code Sample with a bit more than 50k words The actual novel generator

jimkang commented 6 years ago

There's a sort of incidental rhythm to it. I mentally heard the RZA saying the words!

jeffbinder commented 6 years ago

Interesting idea. A complement to this would be an acrostic _im_plosion—that is, a program that takes in one of the iterations of the output and tries to reconstruct the initial word from which it stemmed. It would be a non-trivial task because, once you get to the level of whole lines, the formatting gives no clues as to where the word boundaries are. Depending on the vocabulary, there could be multiple solutions. If you have lines with initial characters "B U I L D A T R E E H O U S E," for instance, you would get "bat" if you treat "T R E E H O U S E" as one word but "bath" if you treat it as two. The realm of acrostics is a garden of forking paths.