This book originates from a set of notes for a course I taught in the fall of 2017 at UC Berkeley. While originally designed to engage an audience, the reader should have no problem simply reading through it. The chapters are chronologically ordered, building up necessary ideas one by one to arrive at the central thesis. I hope it will be of use to anyone interested in poetry, computer science, or whatever in between.