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