fixed case when ngrams did not have a following word to use a random start ngram instead
Merge remote-tracking branch 'origin/master'