static Map ai_ruleEngine2_mappingQualities(RuleEngine2.Rule rule) { new Map map; new Matches m; for (S s : rule.comments) if (match("* mapping: * to *", s, m)) { int value = eqic($1, "good") ? 1 : eqic($1, "bad") : -1 : 0; map.put(pair($2, $3), $1); } ret map; }