dictionary should tell if two phrases are anagrams