def getV1(input = "")
parse = puts(input)
p "[link.getV1]: parse==" << parse << "." unless not $DEBUG
if parse =~ /\[NP .* NP\] \[VP ([^(?:\[(?:NP|ADJP|PP)?)]) \[(?:(PP|NP|ADJP)?) VP\] \. S\]/
p "[Link.getV1]: first match."
r = $1.to_s
r = process(r)
p "[link.getV1] returning: " << r.to_s unless not $DEBUG
return r.to_s
end
if parse =~ /\[NP .* NP\](?:[^\[VP])*\[VP (.*) (?:.*\[(?:(PP|NP|ADJP)?))/
p "[Link.getV1]: second match."
r = $1.to_s
r = process(r)
p "[link.getV1] returning: " << r.to_s unless not $DEBUG
return r.to_s
end
if parse =~ /\[NP .* NP\] \[VP (.*) VP\]/
p '[Link.getV1]: third match.'
r = $1.to_s
r = process(r)
p "[link.getV1] returning: " << r.to_s unless not $DEBUG
return r.to_s
end
return "I don't know what the verb is in " + input.to_s
end