Disambiguation of word groups

Having frequencies for word groups, it would be possible to disambiguate any word group having ambiguous words simply by replacing all postags.

This could be done using the XML disambiguation. Is there also a more compact and easier way to achieve this?

Of course, I could always build an XMML generator to achieve this, once I found out the best way.