Anagram logicized