AI in storytelling: Machines as cocreators