1. An apparatus for automatically generating grammar for use in the processing of natural language, the apparatus comprising: a setting unit configured to set one domain out of a plurality of domains as a target domain to be processed by an intention analysis system; a first extraction unit configured to extract a corpus relevant to the target domain from a collection of corpora; and a generation unit configured to generate a grammar based on the extracted corpus.