chunk
Purpose
Finds documents that contain arguments within a chunk (the simplest syntactically connected unit, such as a noun or verb phrase).
Arguments
This function has no required arguments. When called without arguments, the function matches all chunks. The first optional argument chunk_type specifies the chunk’s type:
np/pnou - noun phrase (internal data, the Harvard Graduate School…)
vp/pver - verb phrase (should not become, can be developed…)
jp/padj - adjectival phrase (very confident, most essential…)
rp/padv - adverbial phrase (most often..)
pp/ppre - prepositional phrase (about, for, at…)
sp/psub - conjunctional phrase (if, unless…)
If the chunk type is specified, the arguments of the function can be omitted. In this case function matches all chunks of the specified type.
-
The other arguments define the terms to search for.
The function also supports optional named parameters:
-
allow_punct:=yes/no allows or prohibits punctuation between arguments (set to "yes" by default);
-
allow_space:=yes/no allows or prohibits spaces between arguments (set to "no" by default);
-
match:=range matches text range starting from the first found term and ending with the last found term.
-
whole:=yes matches chunks made up only by the query arguments.