NaNoGenMo / 2020

National Novel Generation Month, 2020 edition.
76 stars 0 forks source link

(Completed) Ready Player n #62

Open katstasaph opened 3 years ago

katstasaph commented 3 years ago

I realize I have another issue, which is still getting done, but I saw some excerpts of Ready Player Two posted and couldn't resist.

This will take an existing novel (current base material is the John Carter on Mars public domain text, with light edits) and add pop culture references. The n will probably be density of references (currently it's just the first match).

Again, fairly low-tech, spacy matching producing a Tracery template, hand-assembled corpora (most info sourced from Wikipedia and TVTropes to best fit the ready player two-ness)

Sample paragraph:

Shea had just beaten me at chess, the very game Ed plays in Cowboy Bebop, as usual, and, also as usual, I had gleaned what questionable satisfaction I might by twitting him with this indication of failing mentality by calling his attention for the n-th time to that theory, propounded by certain scientists, which is based upon the assertion that phenomenal chess players are always found to be from the ranks of children under twelve (also the number of captured memories in The Legend of Zelda: Breath of the Wild) or adults over seventy-two (one less than the number of the More Fun Comics issue with Aquaman's debut), a theory that is lightly ignored upon those rare occasions that I win. Shea had gone to bed and I should have followed suit, for we are always in the saddle here before sunrise; but instead I sat there before the chess table in the library, idly blowing smoke at the dishonored head of my defeated king, as kinglike as the Burger King, the mascot of Burger King.

katstasaph commented 3 years ago

Repository (I switched to Frankenstein as the base text):

https://github.com/katstasaph/readyplayern

katstasaph commented 3 years ago

And apologies for lateness (time zone mixups) but this is in a functional state, although the corpora could be beefed up.

Code: https://github.com/katstasaph/readyplayern Sample output: https://github.com/katstasaph/readyplayern/blob/main/test.html