Home

Scrambled Eggs

April 2009

And, and, the steam was shut off, a perfect battlefield in which Neptune and Pluto still dispute the empire of the world! It is upon these banks, at six in the morning, but the bystanders must be infinitely more thankful for a decision; and with a really scientific knowledge of the laws of growth.

Its direction to the zenith of the spot incontestible; conceiving, in everything but this despicable brother, that if one of us had succumbed to the shock consequent on departure. "What! they are firing at us!" I exclaimed.

I have six beautiful daughters, but on opening the door – as yet it has only been recognized in the depths of the circle of Endymion – I found, striking one straight to the heart, CHEVELEY.

Okay so I just wrote a program to randomise (by clause) as many books as I can find in text form. The above includes Jane Austen, Oscar Wilde, Jules Verne and H.G. Wells. I shall see what more I can make of this; further enhancements will entail piecing phrases into a sentence such that things are mostly grammatically correct. (And now I'm wondering if that last sentence was automatically generated. It wasn't.)

Apologies for the dearth of posting, work is mondo-busy.

IDIEEASY commented:

"further enhancements will entail piecing phrases into a sentence such that things are mostly grammatically correct."

Start with the easy stuff, eh?

Maybe an easier but still interesting task would be to grab whole sentences and do some bayesian like filtering (you could probably pinch most of the logic/maths from an oss spam filter) so that each sentence has some slight similarity (but not too much similarity) to the last few sentences.

Matt commented:

Heh. See, I think I'm just going to keep track of what punctuation a clause starts and ends with, and make sure clauses match at the seams – comma meets comma, period is followed by a capitalised clause etc.

Fraser commented:

Is this for the open mic poetry thing?