static S ctxFindRuleForInput() { ctxContext(); for (WoodyRule rule : woodyOnRules(woodyBot())) if (rule.parsedCondition != null && rule.parsedCondition.get()) { print("Matching: " + rule.fullName + " " + structForUser(rule.properties)); printIndent(struct(rule.body)); // Just return first matching rule for now ret rule.fullName; } null; }