!7 static new L words; p { S s = send("Forwarded Recognizer", "text"); s = substring(s, smartIndexOf(s, ":")+1); print("Text: " + s); onWords(javaTokC(s)); } svoid onWords(L words) { for (int i = 0; i < l(words); i++) if (eqic(words.get(i), "no")) { removeRange(words, 0, i+1); i = -1; } if (eqicOneOf(last(words), "yes", "thanks")) keep(dropLast(words)); else if (eqic(nextToLast(words), "thank") && eqic(last(words), "you")) keep(dropLast(2, words)); else ; // nothing } svoid keep(L words) { print("KEEPING: " + joinWithSpace(words)); }