views:

2925

answers:

4

I need a simple random English sentence generator. I need to populate it with my own words, but it needs to be capable of making longer sentences that at least follow the rules of English, even if they don't make sense.

I expect there are millions of them out there, so rather than re-inventing the wheel, I'm hoping you know of a source for one, or a resource that will give me enough information that I don't have to hunt down my rusty English skills.

+1  A: 

You might be able to use/modify part of the CS Paper Generator.

chills42
+1  A: 

Do a google for Markov Chains - as an example I found this one in Perl.

anon
+7  A: 

You're looking for an implementation of markov chains for English sentences.

A quick Google search for "markov chain sentence generator" returned:

Can Berk Güder
note to self: submit the answer before doing the Google search.
Can Berk Güder
+1  A: 

Here's one in Perl (with a C version) that you can seed with text of your choice, similar to a Markov chain.

Bill the Lizard