// returns only rules that actually changed (keeping the IDs) static L gazelle_transformRulesUsingWordMap(SS map, L rules) { new L out; for (TextCommentsID t : rules) { TextCommentsID t2 = new( replaceWords_includingCamelCase(map, t.text), replaceWords_includingCamelCase(map, t.comments), t.id); if (neq(t.text, t2.text)) out.add(t2); } ret out; }