def split_message(self, message):
        words = message.split()
        if len(words) > self.chain_length:
            words.extend([self.stop_word] * self.chain_length)
            for i in range(len(words) - self.chain_length):
                yield (words[i:i + self.chain_length + 1])
dataset/ETHPy150Open coleifer/irc/bots/markov.py/MarkovBot.split_message/original