# File link.rb, line 50 def getNP1(input = "") p "[link.getNP1]: input==" << input << "." unless not $DEBUG parse = puts(input) p "[link.getNP1]: parse==" << parse << "." unless not $DEBUG #if parse =~ /\[NP (.*) NP\]( not | )\[(NP|ADJP)/ if parse =~ /\[NP (.*) NP\] \[(NP|ADJP)/ #if parse =~ /\[NP (.*) NP\] \[(NP|ADJP|VP)?/ return process($1) end return "I don't know what the subject in " + input.to_s + " is." end