Disambiguation rules, as well as the rules for syntactic mapping (not discussed here) and for identifying idioms, were written within the framework of constraint grammar by using the CG-2 parser 5 .
morphological disambiguation and semantic disambiguation were implemented within a single rule system.