Anagram classification