From fb7d794f712840e6c0ab402976554b492971a648 Mon Sep 17 00:00:00 2001 From: Jacob Harris Date: Tue, 30 Jul 2013 13:47:58 -0400 Subject: [PATCH] Adding a terminator on the end of some tweets in case it confused Markov chainer --- ebook.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ebook.rb b/ebook.rb index 0bd6209..34dc77a 100644 --- a/ebook.rb +++ b/ebook.rb @@ -59,6 +59,11 @@ else source_tweets.each do |twt| text = twt + + if text !~ /[\.\"\'\?\!]/ + text += "." + end + markov.add_text(text) end