static L nlLogic_applyMetaRules(L rules) { final L metaRules = nlLogic_filterByRHSConstructs(rules, 'construct); new L newRules; for (IfThen rule : rules) newRules.add(nlLogic_transformShallow(rule, func(Exp e) -> Exp { if (!e instanceof Sentence2) ret e; final new NLLogic_ConstructChecker c; c.construct = e.text(); applyNLLogicFacts_v3(c, voidfunc(Exp e) { if (e cast Func) if (eq(e.name, 'construct)) c.construct = e.arg.text(); }, metaRules); ret nlLogic_parseExpression(c.construct); })); ret newRules; }