1. A method of automatically constructing a grammar, the method comprising: receiving sentences; forming n-grams based on the sentences; and a processor automatically generating a rule having a name attribute that identifies the rule in the grammar based in part on the n-grams, wherein generating a rule comprises generating a rule for a specific n-gram by including an entry in the rule to allow the specific n-gram to appear in a position where it did not appear in the sentences.