Open enkiv2 opened 9 years ago
Alright, as a first pass, I've implemented something called 'tparty' that takes lines of text and runs them through a couple of rounds of google translate in order to scramble them -- https://github.com/enkiv2/tparty
I've generated some examples by running existing text through tparty alone or in conjunction with another script (synonym-warp, which I used last year: https://github.com/enkiv2/synonym-warp)
Here are some of the highlights: https://github.com/enkiv2/NaNoGenMo2014/blob/master/kjb-synonymwarp-tparty.md https://github.com/enkiv2/NaNoGenMo2014/blob/master/howigotthere-tparty.md
Nice.
BUT IT IS STILL OCTOMBER.
I feel justified in throwing stones, since none of my precoding has resulted in anything worthwhile.
</smugly-uncomfortable>
For the 'real' entry, I'm thinking maybe I can adapt the hero's journey into a generative grammar or something.
Here are the 17 stages: https://en.wikipedia.org/wiki/Monomyth#The_17_Stages_of_the_Monomyth
If I can turn each stage into a sequence of events and then write a small grammar for randomizing how to describe these events, I can generate some (very formulaic) narrative text. I can autogenerate names for the archetypes that appear (and use them to replace stand-in names like $SAGE and $HERO as a last pass), and randomly choose some of the specifics. For that, I probably should find a list of archetypes typically found in hero's journey stories.
I probably won't actually get around to doing this, and will instead do markov chains or something similarly uninspired.
Well, I made some progress on this:
john@erdos:~/code/NaNoGenMo2014% ./herosjourney.sh
Hero: Dalton Stirling
Hometown: Whitworth
Senex: Dr. Ballard
Other world: Gallifrey
Weapon: An Ancient Cloak of Glory
Title: An Ancient Cloak of Glory in Whitworth
An Ancient Cloak of Glory in Whitworth
It was a foggy, windy day in the city of Whitworth when Dalton Stirling saw An Ancient Cloak of Glory. It was in the wall a few miles away from the forbidden zone It was horrible, with its horrible antedeluvian grassy inlays and its incredible cyclopean brass handle. she didn't know what this message from the gods could mean, so she went to the tower beneath Whitworth to ask Dr. Ballard . the tower beneath Whitworth was A strange place, hanging off a cliff, made of a heap of disintegrating animal hides, with horrible chicken feet holding it off the ground and a bubbling cauldron on the drawing room.
Great start! You also might be interested in Propp's narrative functions. I have some links @ https://github.com/MichaelPaulukonis/NaNoGenMo2014/tree/master/propp.gen
Propp was mentioned in 2013's resources, and I decided to dive into this year. Stuck more on the theory at the moment.
You're writing all this in (z)shell-script. whoah.
I basically use zsh all day at work, so I'm very comfortable with it. Since I'm essentially just creating permutations and picking one at random, I could do that in practically any language. (What I eventually finished last year was 100% zsh as well -- a parallel markov chainer with a map-reduce structure.) I could do it in prolog, but I'd still need to perform a second pass to choose a random selection, so I might as well do that in-line.
On Fri, Oct 31, 2014 at 1:34 PM, Michael Paulukonis < notifications@github.com> wrote:
Great start! You also might be interested in Propp's narrative functions. I have some links @ https://github.com/MichaelPaulukonis/NaNoGenMo2014/tree/master/propp.gen
Propp was mentioned in 2013's resources, and I decided to dive into this year. Stuck more on the theory at the moment.
You're writing all this in (z)shell-script. whoah.
— Reply to this email directly or view it on GitHub https://github.com/dariusk/NaNoGenMo-2014/issues/8#issuecomment-61307880 .
Well, as I suspected, I didn't end up finishing the Hero's Journey templating. Luckily, my pre-coding produced more than enough words.
So, here's my tparty/synonym-warp version of the King James Bible: https://github.com/enkiv2/NaNoGenMo2014/blob/master/example-output/kjb-synonymwarp-tparty.md Here's Peter Watts's Blindsight run only through tparty: https://github.com/enkiv2/NaNoGenMo2014/blob/master/example-output/blindsight-tparty.md Here's the code for tparty: https://github.com/enkiv2/tparty Here's the code for synonym-warp: https://github.com/enkiv2/synonym-warp
On Fri Oct 31 2014 at 2:42:26 PM John Ohno john.ohno@gmail.com wrote:
I basically use zsh all day at work, so I'm very comfortable with it. Since I'm essentially just creating permutations and picking one at random, I could do that in practically any language. (What I eventually finished last year was 100% zsh as well -- a parallel markov chainer with a map-reduce structure.) I could do it in prolog, but I'd still need to perform a second pass to choose a random selection, so I might as well do that in-line.
On Fri, Oct 31, 2014 at 1:34 PM, Michael Paulukonis < notifications@github.com> wrote:
Great start! You also might be interested in Propp's narrative functions. I have some links @ https://github.com/MichaelPaulukonis/NaNoGenMo2014/tree/master/propp.gen
Propp was mentioned in 2013's resources, and I decided to dive into this year. Stuck more on the theory at the moment.
You're writing all this in (z)shell-script. whoah.
— Reply to this email directly or view it on GitHub https://github.com/dariusk/NaNoGenMo-2014/issues/8#issuecomment-61307880 .
T PARTY!
Translation party tonight! Translation party tonight! Translation party tonight! Translation party tonight!
We're gonna have a Translation party tonight!
Alright!
We're gonna have a Translation party alright!
Tonight!
We've got nothing better to do Than watch Google Translate and have a couple of brews
And, to be thematic, Moby Dick gets the same treatment: https://github.com/enkiv2/NaNoGenMo2014/blob/master/example-output/MobyDick-tparty.txt.md https://github.com/enkiv2/NaNoGenMo2014/blob/master/example-output/MobyDick-tparty-synonymwarp.txt.md
On Mon Dec 01 2014 at 9:45:13 AM Michael Paulukonis < notifications@github.com> wrote:
T PARTY!
Translation party tonight! Translation party tonight! Translation party tonight! Translation party tonight!
We're gonna have a Translation party tonight!
Alright!
We're gonna have a Translation party alright!
Tonight!
We've got nothing better to do Than watch Google Translate and have a couple of brews
— Reply to this email directly or view it on GitHub https://github.com/dariusk/NaNoGenMo-2014/issues/8#issuecomment-65073841 .
I'll try to come up with something original, but if all else fails, I can just do a markov chain again.