Patent attributes
A mechanism is provided for optimizing parsing of grammatical prose in a multi-prose electronic document. A received multi-prose electronic document is partitioned into a set of text segments of homogenous prose. A set of predefined Natural Language (NL) parsers is executed on each text segment in order to discern and measure a quality of parses by each NL parser throughout the multi-prose electronic document. A cross-parse analysis of the multi-prose electronic document and an aggregation of adjacent clauses or sentences of poor quality parses are performed. For each text segment, aggregation patterns yielding a best semantic role match are identified from one of the set of predefined NL parsers. Then, a parsed electronic document is generated using the set of predefined NL parsers such that each text segment is parsed by a NL parser that has the best semantic role match to that text segment.