Syntactic analysis.

A grammar that annotates simple prepositional phrases in the singular or in the plural, e.g.:

"For <NP>such a pretty car</NP>" will be annotated as <PP>For <NP>such a pretty car</NP></PP>

"about <NP>many tables</NP>" will be annotated as <PP>about <NP>Many tables</NP></PP>

"For Joe" will not match if "Joe" has not been annotated as a <NP>

Note: for this grammar to work, grammar np.nog must have already been applied to the text.

Use syntacticparsing to apply grammars in cascade to annotate texts.
Use syntacticlocate to locate queries in annotated texts.

For an explanation on how to perform automatic syntactic and semantic annotations, see:

Silberztein, M. Formalizing Natural Languages: the NooJ approach. Wiley Eds: Hoboken, NJ.

See www.nooj4nlp.org for more information on NooJ, its community and its full-size linguistic resources.
