1. A method of accessing a production among a plurality of productions of at least one grammar, said plurality of productions comprising a first group of productions associated with a first group of events and each production defined for an event type and contextual information, and a second group of productions associated with a second group of events distinct from the first group, said events describing hierarchical data of a structured electronic document, said method comprising: using a device for processing structured documents to perform steps as follows: a) a step consisting of determining whether an event in question is of the first group; and b) in the affirmative, a step of predicting a production associated with said event in question.