Looks like an Eddington Algorithm (likely misnamed, but taken from Eddington's quote about monkeys typing Shakespeare). It's done by hashing the entire text and then randomly stepping down a line.  The size of your step (one word, two words, etc.) effects readability.  I recall once seeing somebody's bot use this algorithm to occasionally spew out the bible on a religious chat channel.  Drove the locals nuts.