Anagram discriminant