1. The method for generating a corpus grammar for a collection of document records with grammatical structure components identified by start and end tags, comprising the steps of: extracting said start and end tags from samples of said records and forming a tag list therefrom; matching each start tag of said list with a corresponding end tag with respect to each of said records to derive matched tags, said matched tags representing a tag structure of grammar elements paired in a parent-child defined relationship; and accumulating said grammar elements represented by said matched tags of said tag structures as corresponding rules substantially exhibiting hierarchical tree structures to establish a corpus grammar.