Giter Site home page Giter Site logo

shorties's Issues

WikiHole, the short story

So I get stuck in "wikiholes" pretty frequently, you know, where you just want to look up one thing real quick but somehow you keep clicking on links and then all the sudden it's hours later and you have no idea how you got to the article you're on or even what you were first reading about.

My short story is based on this experience! I made it in Ruby. Here is the code & full text.

My story starts with:

You know what I should look up?

Jock Jams

Jock Jams is a series of compilation albums released by Tommy Boy Records.

Then by randomly selecting links from that page, ends up traveling to the Wikipedia article on ISBN numbers:

This looks good: International Standard Book Number

The International Standard Book Number (ISBN) is a unique[a][b] numeric commercial book identifier.

Hmm, intriguing.

And finally ends on the article for square dancing:

Never heard of Traditional square dance

Traditional square dance is a generic American term for any style of American square dance other than modern Western.

This short story code is fun because it is different every time you run it. When you run the script, it prompts you for a url to a wikipedia article, so you can choose the starting point for your story story.

Theology Swap

I just graduated from a coding bootcamp in Seattle, but before I lived here I was a theology grad student in New Jersey, and also worked with a few churches there. I've never used nlp algorithims before, and since some forms of theology can become so intricate and complex, I thought a fun use for this contest might be to write scripts that 'de-systematize' a systematic theologian. So, I took the first volume of Thomas Aquinas' Summa Theologica (which is ridiculously abstract and systematic), and wrote scripts to pull out just the questions and answers in order to generate trigrams and paragraphs from those.

Here is my code, along with the files where I dumped the questions and answers. After getting my questions/answers to split off correctly, I used Sentence Split, Generate Trigram Frequencies, and Generate Paragraphs from Trigrams on Algorithmia's site to generate a question from the question array, then an answer from the answer array. Then I added some scripts to change 'man/men' (as a 'universal') to 'humanity/people', and shifted many of the pronouns referring to God from 'He' to 'She', because it's a good thing to do, and Aquinas couldn't stop me : ) In this process it also seems that I made up two words 'humanifestation' and 'humanner', so, that's pretty fun...

This was my first real use of Python, and I had so much fun with it. I'm also pretty satisfied with the result. For example, looks like the answer to the third question needed to be preceded with a bite to eat:

Whether God Is Infinite?

I answer that, Nom.

It seems that the swapped up summa is also capable of Aquinas' level of abstraction:

For some said that it possessed some common nature, all things are distinguished from all other bodies must intervene between the distinction of these belong to God, in the order of Divine Providence, were the immediate principle of motion. For what is accidental to the various souls being distinguished accordingly as the formal distinction of things.

My favorite question:

Whether the True and False Are Contraries?

And such an elegant ending:

Therefore that thing.

Here's a link to the full text on a simple site. Thanks for this contest, it was fun and I learned a lot!

n+7

Many years ago (I think it was in 2001) I participated in a class about Mathematics & Literature. Beside others the "n+7 method" was presented: You replace in a text each noun with the noun in a dictionary which is 7 places after the original noun, e.g., "a man meets a woman" is transformed to "a mandrake meets a wonder" using the Langenscheidt dictionary.

OK, here my submission:

Note: This is my first algorithm on Algorithmia and my first python script - bear with me! :-)
Thanks for the contest, it was a nice exercise.

Wrong Ho Jeeves [SAMPLE SUBMISSION]

This is the short story I generated using the sample python code and using the book Right Ho, Jeeves by P.G. Wodehouse as the basis for training my text generator.

I've uploaded the code I used to this gist, along with the full text of my short story.

Here's a preview of some of my favorite parts of the generated story so you can get a taste:

He quivered like a practical working proposition. I could not have embraced it eagerly but that the boy Glossop is the same dish day after her, wishing that some hideous disaster would strike this house like a full aunt. It would appear to square with your statement. Can't you see we shall, by any chance? Give me that there was no longer, sir. Now here's something else: You mean--for love? We talked for a pretty affair? And then? It will make an effort.

We're out here, laughing heartily. You would be over.

I especially love this part! It's almost self-aware.

I beg your pardon, sir, surely you can readily appreciate the point: What's all this mean?

No doubt. Right-ho. About nothing. I am like a little story.

[Note: This entry generated with the sample code is just intended to give you an idea of what you can submit as your entry in this issues area. Feel free to get creative with it & don't forget that you can open an issue before you are done to get feedback or help. Just remember to link us to your code and to the final text of your short story when you are done!]

Arrested Development episode

@jennaplusplus and I worked on an Arrested Development script generator.

The code lives at https://github.com/jennaplusplus/shorties/ and there's a generated episode with 300 lines at https://github.com/jennaplusplus/shorties/blob/master/episode_2.txt

Transcripts for the first three seasons of the show were obtained from http://arresteddevelopment.wikia.com/ with retrieve-transcripts.rb. Trigrams were generated for all characters with more than 10 lines overall, for a total of 71 trigram files (generate-trigrams.rb).

The episode script was generated with generate-episode.rb. The order of characters in the script was selected randomly, weighted by the size of the characters' trigram files. The order of the script was further modified to ensure that the Narrator always starts the episode and a character doesn't speak twice in a row. Each line is 1-5 sentences long.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.