RNN is one of the very powerful deep-learning algorithm which works amazingly well on Sequential Data. As historical or past data plays major role in the prediction of sequential data, RNN takes these inputs of not only recent output but also past output. Here I have used GRU for the prediction of eminem's Rap.
More information? Read the Famous Karpathy Blog: http://karpathy.github.io/2015/05/21/rnn-effectiveness/