NaNoGenMo / 2018

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

The Valley Girl of Oz, Bjork Bjork Bjork #61

Open spc476 opened 5 years ago

spc476 commented 5 years ago
              The Valley Girl of Oz, Bjork Bjork Bjork

                      "Written" by Sean Conner.
                 Based upon _The Emerald City of Oz_
                          by L. Frank Baum.

This is my 2018 entry for NaNoGenMo. After many false attempts to come up with a decent idea, I finally settled for this---take one of L. Frank Baum's Oz books (the first one to exceed 50,000 words---for the record, it's the 6th book in the series) and run it through a translator. In this case, the translator doesn't convert the work into Kyrgyz and back into English, but into Valleyspeak (you know, like, what Valley Girls, like, speak? Gag me with a spoon!).

But I wanted to have some challenge to this, so I decided to convert the text of the book into Valleyspeak, but the actual dialog in the book into Swedish Chef (sorry Sweden!). Trust me, it was less offensive than my first choice, Jive.

I converted the origial Valleyspeak and Swedish Chef translators to Lua, as it would make it easier to combine the two using LPeg (which is one of the strengths of LPeg---it's parsing expressions that can be combined) than attempting to get it working with the original lex based code.

The file 'chef.lua' is the standalone Swedish Chef translator, and 'valley.lua' is the standalone Valleyspeak translator, and 'run.lua' combines the two into something that actually works. I should note that this runs fine under Lua 5.1 but doesn't at all under Lua 5.3. At this time, I don't know if this is due to the system I'm running this on, or if Lua 5.3 uses significantly more memory, but be warned---Lua 5.1 only for this code.

The repository and the novel.

hugovk commented 5 years ago

Good stuff! Here's a preview:

The Emerald City of Oz by L. Frank Baum

1. How thuh Nome Kin' Became Angry

The Nome Kin' was like, ya know, in an angry mood, like, wow, and at such
times he was very disagreeable. Every one kept away from him, fer shure, even
his Chief Steward Kaliko.

Like, therefore thuh Kin' stormed and raved all by himself, mostly, walkin' up
and down in his jewel-studded cavern and gettin' angrier all thuh time. Then
he remembered that it was like, ya know, no fun bein' angry unless he had some
one to frighten and make miserable, like, wow, and he rushed to his
bitchin'est gong and made it clatter as loud as he could.

In came thuh Chief Steward, like, tryin' not to show thuh Nome Kin' how
frightened he was.

"Send zee Cheeeff Cuoonselur here-a! Bjork bjork bjork!" shouted thuh angry
monarch.