Deduplicate text fragments by merging intersecting candidate boxes.
Remove assumptions about reading order of words from matchText().