Search

Search content of the knowledge base.

The search found 2 results in 0.008 seconds.

Search results

  1. @HaikuD2

    This cleverly named bot finds haiku in the twitterverse and republishes them in a recognizable format. The program “runs on @johndburger’s laptop” and even though the code isn’t available, the basic procedure can be inferred from the results as a set of steps: 1: The program uses Twitter API to pull tweets to analyze, filtering out anything that isn’t in English. 2: It uses some sort of library, like the Wordnik API to identify and count the number of syllables in all the words obtaining a total for the tweet. With this procedure, it can identify tweets with exactly 17 syllables. 3: It then determines which of those tweets can be divided into three lines of 5, 7, and 5 syllables without cutting into any words. 4: It formats the results to add: line breaks, a ” •” symbol at the end of the first two lines (to signal line breaks for Twitter clients that don’t support them), attribution to the writer of the original tweet, and the #haiku hashtag. 5: Burger then selects the best haiku or simply posts the raw results (I’m not sure), and manually post or schedules about 6 tweets per day with a 4-5 hour interval between them.

    Hannelen Leirvåg - 07.05.2013 - 19:07

  2. @KarlMarxovChain

    The Karl Marxov Chain responds to a word that users (or Pereira) seed it to guide its search through Karl Marx’s publications, as described. When it gets the seed word, it finds it in the text and takes not the next word, but the next two words. The first two words of this 3-gram are first two words of the tweet. It then takes not the last of these words, but the last two and searches the text for that pair of words. Then, of all of the times that those words appear together, it picks one at random, adds the last word to the chain, and then moves up a word. The result is that the probabilities are a bit more constricted, meaning that the tweet conforms a bit more closely to the original text, meaning it ends up sounding a bit more like normal English. The bot also cheats a bit and tries to make “complete” sentences (start with a word that has an initial capital in the source text and end with a period), but it’s not always successful. The source texts are also not the cleanest in the world, so it sometimes hiccups and tosses out typographical gibberish. (Source: Leonardo Flores, I ♥ E-Poetry)

    Hannelen Leirvåg - 09.05.2013 - 21:23