For the app, a deep learning neural network was fed with a myriad of 19th century poems with over 25 million words.