New rule type: MergeCohorts Documentation: https://visl.sdu.dk/cg3/chunked/rules.html#mergecohorts
This feature has been asked for since at least Nov 2013 ( https://groups.google.com/d/msg/constraint-grammar/qXStKY2qpEM/DG8tuCsKjoEJ ), and yesterday I finally implemented a first version of it. E.g., given input "<March>" "March" month "<2nd>" "2nd" ordinal The rule MergeCohorts ("<$1 $2>"v "$1 $2"v date) ("<(.+)>"r month) WITH (1 ("<(.+)>"r ordinal)) ; would yield "<March 2nd>" "March 2nd" date It does not yet handle dependencies or named relations. One would assume you'd only ever merge inter-dependent cohorts, in which case the dependencies are trivial to solve - just have the new cohort take the place of the removed cohorts. But when that's not true, it gets complicated. -- Tino Didriksen -- You received this message because you are subscribed to the Google Groups "Constraint Grammar" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/constraint-grammar. For more options, visit https://groups.google.com/d/optout.
