Anagram diagnosis