Anagram mattings