Appling ideas from machine learning and Bayesian inference to one of the oldest human practices––namely, storytelling