Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naive permutation - I go by our grey cup for my pal, a #NNNGM #117

Open
railsagainstignorance opened this issue Nov 26, 2019 · 2 comments
Open

Comments

@railsagainstignorance
Copy link

railsagainstignorance commented Nov 26, 2019

Hi, inspired by the Wired article, which mentioned Nick Montfort's blog post, which mentioned your NaNoGenMo initiative, here is a stab at #NNNGM (Nano-NaNoGenMo).

The generated novel is permute.txt.

The code which generated it is invokePermute.sh. An overview of the algorithm is in the script comments.

It's all in this repo.

@railsagainstignorance
Copy link
Author

railsagainstignorance commented Nov 26, 2019

a snippet of the full text. There's a teensy bit of Green Eggs and Ham going on, which was the original inspiration, but so little code to play with that it became a simple matter of iterating through all permutations (or is that combinations?).

 I go by our grey cup of your dog.
 I go by our grey cup of your set.
 I go by our grey cup for my pal.
 I go by our grey cup for my owl.
 I go by our grey cup for my bud.
 I go by our grey cup for my dog.
 I go by our grey cup for my set.
 I go by our grey cup for your pal.
 I go by our grey cup for your owl.
 I go by our grey cup for your bud.
 I go by our grey cup for your dog.
 I go by our grey cup for your set.
 We ran to the red egg of my pal.
 We ran to the red egg of my owl.
 We ran to the red egg of my bud.
 We ran to the red egg of my dog.
 We ran to the red egg of my set.
 We ran to the red egg of your pal.
 We ran to the red egg of your owl.
 We ran to the red egg of your bud.
 We ran to the red egg of your dog.
 We ran to the red egg of your set.
 We ran to the red egg for my pal.
 We ran to the red egg for my owl.

@railsagainstignorance railsagainstignorance changed the title Naive permutation - I go by our grey cup for my pal. Naive permutation - I go by our grey cup for my pal, a #NNNGM Nov 26, 2019
@nickmontfort
Copy link

NIce! Also see Gysin's permutation poems, e.g. this poem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants