Describir: The hidden mathematical logic of stories