Implemented in svn and latest nightly. ADD/MAP/COPY now takes BEFORE|AFTER before the target. E.g.
ADD (x) BEFORE (y z) (n) ; COPY (x) EXCEPT (y) AFTER (z) (n) ; -- Tino Didriksen On 9 June 2017 at 13:09, Kevin Brubeck Unhammer <[email protected]> wrote: > Tino Didriksen <[email protected]> čálii: > > > Replied inline... > > > > On 9 June 2017 at 12:44, Kevin Brubeck Unhammer <[email protected]> > wrote: > > > > > I know it's not trivial to make heuristics for tag placement here, but > > > it seems like it could be possible to have a heuristic similar to the > > > SUBSTITUTE heuristic one, like > > > > > > place <extra tags> after the last removed tag from <extra tags>, > > > otherwise at the end of the reading > > > > > > so that you could write > > > > > > COPY (A Superl &SUGGEST) EXCEPT (A) TARGET (A &syn-super-part2) IF > (NOT 0 (&SUGGEST)); > > > > > > (On the other hand, if people depend on the current behaviour, > perhaps new > > > rule options BEFORE/AFTER <tag> might be a better solution …) > > > > > > Using the except tag could work, but like Substitute it'd really be > more of a hack. > > > > I am vastly more in favour of Before/After as insertion point - this > could also be extended to Substitute. Given we have the keywords we might > as well make > > use of them. > > I'd be very happy with that solution :) Keywords are more explicit and > easier to reason about. > > -- 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.
