Random grammatical sentence generator using CFG

Context-free grammars (CFGs) can be used as a model for natural language. That means they capture the structure of language in a relatively simple form that can be reasoned about and used to generate new instances of natural language. My natural language processing book says CFGs were proven insufficient for modeling German spoken in Zurich (Speech and Language Processing (2nd Edition), p.538), but they're good enough to bring you the following silly, random, grammatical sentences:
They may not make sense. They may be hard to understand. But they should be grammatical. 

Refresh to see more. View source to see how it's done.

Leave a comment

About this Entry

This page contains a single entry by mason published on October 18, 2008 1:47 AM.

Is the Problem of Other Minds a problem? was the previous entry in this blog.

How to solve "unknown error" when installing a device driver in Windows Vista is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

My photos

www.flickr.com
masonsimon's items Go to masonsimon's photostream