Anagram inferrer