Hello! I am trying to figure out a solution to a suggestion when I want to inflect a verb to match the tense of a verb I am replacing. Here’s a pattern and example:
<token inflected="yes">proceed<exception>proceeding</exception></token> <token>to</token> <token postag="VB"/>
This pattern will flag the following:
He proceeded to schedule an interview.
Suppose I wish to change the sentence to “He went on to schedule an interview.” This is straightforward:
<suggestion><match no="1" postag="(V.*)" postag_regexp="yes" postag_replace="$1">go</match> on to \3</suggestion>
My question is: What happens when I want to change the sentence to “He scheduled an interview.”? The issue is that the verb is detected as a VB so I do not have it at the time I am writing the rule. It’s “dynamic” in the sense that I don’t know it until a sentence is run. Is there a way to accomplish this?
I naively tried the following, which doesn’t do anything:
<match no="1" postag="(V.*)" postag_regexp="yes" postag_replace="$1">\3</match>
And this naive pattern creates “He scheduleed an interview.” (incorrect):
<suggestion>\3<match no="1" regexp_match="proceed(.*)" regexp_replace="$1"/></suggestion>
Any suggestions would be helpful. Thank you!