Unsupervised AI makes up some pretty funny jokes

But how does it know if the jokes are funny once or funny always?