Anagram recoding