sS replacePhrases(S s, SS map) { ret translateUsingPhraseMap(s, map); } sS replacePhrases(SS map, S s) { ret replacePhrases(s, map); }