I've made a similar project about two years ago in Python, called Choice Words [1]. I've had some really interesting results by encoding the grammar of SVG, which generates procedural drawings (the GitHub project shows an example).
My project was based on the Kant Generator, an example project from Dive Into Python[2].
My project was based on the Kant Generator, an example project from Dive Into Python[2].
[1] https://github.com/fdb/choicewords
[2] http://www.diveintopython.net/