!7 sclass MatchInput > DynPrintLogWithInput { start { useLocalMechListCopies(true); set serverMechList_raw_fresh_verbose; } void update(S s) { print("\n> " + s); L pats = mL("English sentence patterns"); L tok = javaTokWithAngleBracketsC(s); printStruct(tok); for (S pat : pats) { L tokPat; tokPat = javaTokWithAngleBracketsC(pat); L> match = uniquify(dropTwinPairs(zipTwoListsToPairs_ifSameLength(tokPat, tok))); if (match != null) print(" Result: Choose pattern " + quote(pat) + " for input " + quote(s) + " if match: " + sfu(match)); } } }