Anagram generalizing