/np_start[] and /np_end[] instead of <np>
and </np> tags in CQP queries, as well as /np[] instead of
/region[np]
> /np_start[] /np[] "and" /np[] /np_end[];
> show macro region(1);
> show macro codist(3);
/region[] macro to embedded regions:
MACRO anyregion($0=Tag) (<$0>|<$01>|<$02>) []* (</$02>|</$01>|</$0>) ;
/codist[] macro to two constraints:
MACRO codist($0=Att1 $1=V1 $2=Att2 $3=V2 $4=Att3) _Results = [($0 = "$1") & ($2 = "$3")]; group _Results match $4; discard _Results; ;
> "man" /anyregion[pp];
> /codist[lemma, "go", pos, "V.*", word];
MACRO region($0=Att $1=Key $2=Val) <$0_$1 = "$2"> []* </$0_$1> ; MACRO region($0=Att $1=Key1 $2=Val1 $3=Key2 $4=Val2) <$0_$1 = "$2"><$0_$3 = "$4"> []* </$0_$3></$0_$1> ;