!7 sclass MatchInput > DynPrintLogWithInput { start { dm_useLocallyCopiedMechLists(); } void update(S s) { print("\n> " + s); L tok = printStruct(javaTokWithAngleBracketsC(s)); PlanInMotion plan = new(mech_englishSentencePatterns()); L>> results = new L; // pattern + match for (S pat : plan.master()) ai_matchAngleBracketPattern_toResults(pat, tok, results); for (Pair> p : sortedByLengthOfPairBList(results)) print(" Result: Choose pattern " + quote(p.a) + " for input " + quote(s) + " if match: " + ai_renderMatch(p.b)); } }