Jonathon Doran and Ian Parberry wrote "A Prototype Quest Generator Based on a Structural Analysis of Quests from Four MMORPGs" in 2011 (pdf, BibTeX, more information).
Ovid implemented Doran and Parberry's work in Perl: https://gist.github.com/Ovid/0674ef8fe906f10cc8f2
This is a transliteration of their transliteration.