If you need even lower level access to the program B robot, you can request responses to individual sentences on a line-by-line basis. Inside multiline_response() there are calls to the Classifier. respond() method like: String response = respond(norm, hname); where "norm" is a normalized single-sentence input and hname is the virtual IP address of the client. Inside respond() we find the the method respondIndex(). The base class StringSet stores the strings in an indexed vector, and respondIndex() locates the index of the best matched category for the normalized input string. The loop inside respondIndex() scans through the categories in reverse alphabetical order by key, until it finds the best match. Because the "*" pattern comes first in alphabetical order, and is the most general pattern, respondIndex() will return zero when no more specific category matches.