static S ai_autoApplyRules(S input) { temp temp_ai_setVar("#input", input); L rules = ai_texts_verified("$X", "is", "an auto-apply rule"); Class c = loadFunctions_cached(rules); ai_prepLoadFunctions(); for (S ruleName : rules) try answer (S) pcallOpt(c, ruleName); }