Story Machine

based on Morphology of the Folktale by Vladimir Propp

    This is key function - plenty of suggestions here.