A method for building a tree of parse items involves receiving a plurality of parse items stored in an ordered data structure, processing semantic attributes associated with the plurality of parse items, generating a merged parse item from at least two parse items of the plurality of parse items, and forming a portion of a tree data structure such that the merged parse item is a parent of the at least two parse items.