!7 sclass MatchInput > DynPrintLogWithInput { start { dm_useLocallyCopiedMechLists(); } class MatchResult1 { L tokPat; LPairS knownMatches, assumedMatches; } void update(S s) { print("\n> " + s); L tok = printStruct(javaTokWithAngleBracketsC(s)); PlanInMotion plan = new(mech_englishSentencePatterns()); L results = new L; // pattern + match Iterator stage1 = mapI(plan.master(), matchAngleBracketPattern(pat, tok, results); for (Pair> p : sortedByLengthOfPairBList(results)) print(" [" + l(p.b) + "]: Choose pattern " + quote(p.a) + " for input " + quote(s) + " if match: " + ai_renderMatch(p.b)); } }