|Generating Unique Text with Markov chains|
Few years ago i had written Joomla component AutoContent. That component generates new unique content and add it to Joomla site. In general, this is not good tool, because it does black SEO things. If search engine (ex. Google) finds that there is autogenerated text without sense then site can be banned.
I desided to not support that component anymore. But there are some interesting classes in that component.
One of them is php class that generates new unique text with Markov chains.
From Wikipedia: …Markov chain is a stochastic process with markov property … [Which means] state changes are probabilistic, and future state depend on current state only.
Markov chains have various uses, but one of most known in web is generating new text with using some existent text.
The algorithm is,
There is code of the function that generates new text with Markov chains. The functions requires array of sentences as argument.
|Last Updated on Friday, 19 March 2010 11:29|