Anagram learning