Watch an A.I. Learn to Write

While the inner workings of these algorithms are notoriously opaque, the basic idea behind them is surprisingly simple. They are trained by going through mountains of text, repeatedly guessing the next few letters and then grading themselves against it.