Wintertree Software Inc.

WGrammar Checker Engine - Support

Home Site index Contact us Catalog Shopping Cart Products Support Search

You are here: Home > Support > WGrammar Grammar Checker Engine > Mark number assignment in the VP_M macro


Mark number assignment in the VP_M macro and CTX_*_VP context targets

Product: WGrammar Checker Engine SDK (all SDKs)

Problem: The VP_M macro matches verb phrases in a variety of forms. Each word in the verb phrase is saved in mark numbers, starting at the base mark number provided as a parameter to the macro. Because verb phrases have flexible structure (e.g., adverbs can appear almost anywhere), it can be difficult to know in advance to which mark numbers different words in the verb phrase will be assigned. The table below shows which words are assigned to which mark numbers in verb phrases of various forms. Note that the VP_M macro is used by context targets that have "VP" components, such as CTX_SOS_NP_VP, so the mark number assignment applies to these as well.

The table shows the mark number assignment when the base mark number passed to VP_M is 10, but see the documentation for each context target in the WGrammar Reference Guide for the base mark number used for the VP component (e.g., in CTX_SOS_NP_VP, the base mark number for the VP component is 20).

For example, when VP_M matches the phrase "could not be eaten," as in "[The cake] could not be eaten," the word "eaten" would be saved in mark number 14 (assuming 10 was passed as the base mark number). In CTX_SOS_NP_VP, "eaten" would be saved in mark number 24 (because the base mark number for the VP part of CTX_SOS_NP_VP is 20).

Verb phrase

10

11

12

13

14

15

16

17

18

19

eat

eat

quickly eat

quickly

eat

has eaten

has

eaten

certainly has eaten

certainly

has

eaten

certainly has not eaten

certainly

has

not

eaten

has not eaten

has

not

eaten

could eat:

could

eat

certainly could eat:

certainly

could

eat

could not eat

could

not

eat

certainly could not eat

certainly

could

not

eat

could have eaten

could

have

eaten

certainly could have eaten

certainly

could

have

eaten

certainly could not have eaten

certainly

could

not

have

eaten

certainly could not have been eaten

certainly

could

not

have

been

eaten

could be eaten

could

be

eaten

certainly could be eaten

certainly

could

be

eaten

could not be eaten

could

not

be

eaten

certainly could not be eaten

certainly

could

not

be

eaten

is

is

certainly is

certainly

is

is eating

is

eating

is not eating

is

not

eating

certainly is not eating

certainly

is

not

eating

wants to eat

wants

to

eat

certainly wants to eat

certainly

wants

to

eat

wants to not eat

wants

to

not

eat

certainly wants to not eat

certainly

wants

to

not

eat


Home Site index Contact us Catalog Shopping Cart Products Support Search


Copyright © 2015 Wintertree Software Inc.