3 # Author: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
4 # New markov chain plugin tester
8 mkv = MarkovChainer.new
10 text = "This is a test, a nice little test indeed."
14 words = text.scan(MarkovChainer::WNW)
18 puts "Word: %s, next: %s" % [word, mkv.next(word)]