gp

Purpose

Gather nodes that matched the current element under a single node with NAME as its name.

Remarks

group is an alternative form for gp.  gp is analogous to the group Post Action.

Example

# Do a mini-reduction of all the nodes that matched _noun, naming the reduce node _nouns,
# before reducing the entire pattern to an _np.
@RULES
_np <-  _det _quan _adj _noun [plus group=_nouns] @@

See Also

rename, Phrase Element Modifiers.