I’m trying to describe how affix coordination is handled in the Grammar Matrix and I don’t quite have a clear picture. As far as I know, the coordination library predates the morphotactics library, so I’m a little unclear on how (if?) these were integrated.
The questionnaire asks for the orthography of the affix and if it’s a prefix or suffix. coordination.py creates an irule for that affix. No coordination feature becomes available on the morphology page after affix coordination is specified (like it does for eg. negation).
Is the irule created by coordination.py able to attach just anywhere? Is there any potential interaction between this and the morphotactics inputs/outputs I should anticipate? This is the relevant code in coordination.py:
if pre or suf: # first the rule in mylang mylang.add(pn + '-bottom-coord-rule :=\ ' + bot + 'bottom-coord-rule &' + passup + '\ [ SYNSEM.LOCAL.COORD-STRAT "' + num + '",\ SYNSEM.LOCAL.COORD-REL.PRED "_and_coord_rel",\ DTR.SYNSEM.LOCAL.CAT.HEAD ' + headtype + ' ].') # now the spelling change rule in irules.tdl rule = pn + '-bottom :=\n' if pre: rule += ' %prefix (* ' + pre + ')\n' else: rule += ' %suffix (* ' + suf + ')\n' rule += ' ' + pn + '-bottom-coord-rule.' irules.add_literal(rule)