I tried google and found little that I could understand.
I understand Markov chains to a very basic level: It\'s a mathematical model that only depends on previous input
You want to look for Ian Barber Text Generation ( phpir.com ). Unfortunately the site is down or offline. I have a copy of his text and I want to send it to you.