Anagram generalizer