Literary Theory for Robots (How Computers Learned to Write)