I am trying the following: I want to find a V node that has no child with the 
>NSUBJ tag, to attach to it the target N as child, and add the >NSUBJ tag to 
the target.

I try:

WITH N - Hum - Pl
     IF (1** V + S:NonHum3Sg - S:Ad BARRIER Comma LINK NONE c >NSUBJ)
        (NOT p (*)) {
   MAP >NSUBJ (*) ;
   SETPARENT (*) TO (jC1 (*)) ;
} ;

which is wrong because the LINK gives me the wrong contextual target, even if 
there might not be such c. (‘The last link of the contextual test is used as 
target.’ Does this even make sense here, since NONE is universal 
quantification?)

So I try

WITH N - Hum - Pl
     IF (1**A V + S:NonHum3Sg - S:Ad BARRIER Comma LINK NONE c >NSUBJ)
        (NOT p (*)) {
   MAP >NSUBJ (*) ;
   SETPARENT (*) TO (jC1 (*)) ;
} ;

using the attachment flag. But this gives just silly results, with the WITH 
rule triggering, but not the included MAP and SETPARENT rules.

I played around with the _ATTACHTO_ magic set, like this:

WITH N - Hum - Pl
     IF (1**A V + S:NonHum3Sg - S:Ad BARRIER Comma LINK NONE c >NSUBJ)
        (1* _ATTACHTO_)
        (NOT p (*)) {
   MAP >NSUBJ (*) ;
   SETPARENT (*) TO (jC2 (*)) ;
} ;


but couldn’t get it working.

Some help would be highly appreciated.

- Paul Meurer

PS. There is a typo in the manual:

NOPARENT
Applicable for all rule types.
NOMAPPED prevents the rule from running on cohorts that have a dependency 
parent.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/constraint-grammar/CE03CC09-6F90-44BC-9E72-C8C09D7F9058%40uib.no.

Reply via email to