title: Cleaning up this PHP Markov Chain output?
body: <p>This is my first time working with Markov chains.</p>
  
  <p>I want to combine two sources of text and get a readable Markov Chain. The implementation I'm using is <a href="http://www.haykranen.nl/projects/markov/" rel="nofollow noreferrer">here</a>  - the sources of text are stripped of markup, etc.</p>
  
  <p>I was first exposed to Markov Chains with the <a href="http://ruby-rbot.org" rel="nofollow noreferrer">Ruby Rbot</a> IRC bot. Their Markov plugin source is <a href="http://ruby-rbot.org/gitweb/rbot.git/blob/60a664cc6af15b9a45f4891cee05fb7d11218bbd:/data/rbot/plugins/markov.rb" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I'm finding my use of the PHP markov algorithm's output is messy. One thing I am able to see is that the rbot implementation chains two words together to start. Is there a clear way to make this happen with the PHP implementation I've linked? If not, is there a PHP implementation that can do this? </p>