Virtually all of my coding revolves around text, one way or another. Just to name two examples, see my rhyming anapest generator or my Gothic analyzer program. In this post, I decided to make something a bit mad, so I came up with a very simple (but very funny!) JavaScript random text generator.
But this isn’t just any random… random text generator like, say, my random quote generator. This little program – in only 10 lines of code – combines text from different sources and returns a set of randomized sentences.
If this sounds somewhat familiar, it’s very similar to my Ghostwriter Android app.
The difference is, this time I decided to i) code it in JavaScript (rather than Java); ii) use the first two chapters of two of my novels, Illiterary Fiction and The Other Side of Dreams to generate the results.
(more…)