When the data scientist David Robinson analysed an enormous tranche of 112,000 plots including books, movies, television episodes and video games, his algorithm found one common story shape. Robinson described this as, ‘Things get worse and worse until, at the last minute, they get better.’