1. A method of automatically constructing a grammar, the method comprising: receiving example input text strings; forming n-grams based on the input text strings; and automatically generating a rule in the grammar based in part on the n-grams.