Recursive transition networks
Here is my Python (2.7) implementation of the recursive transition networks given by Douglas Hofstadter in the book Gödel, Escher, Bach:
This produces amusing (but often syntactically correct) nouns such as "red bagels that big shampoo sneezes" and "the green shampoo without shampoo that milk gobbled".
The program works by randomly walking the following graph:
You can try it here by clicking the 'Activate' button: