Markov: off by one while counting up to min_size

This commit is contained in:
Brian S. Stephan 2012-10-05 17:09:04 -05:00
parent 7b2e3fa9aa
commit 9ec74d0e35
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ class Markov(Module):
self.log.debug("gen_words: {0:s}".format(" ".join(gen_words)))
# tack a new chain onto the list and resume if we're too short
if gen_words[-1] == self.stop and len(gen_words) < min_size + 2:
if gen_words[-1] == self.stop and len(gen_words) < min_size + 3:
self.log.debug("starting a new chain on end of old one")
# chop off the end text, if it was the keyword indicating an end of chain