Wolfram Research

Function Repository Resource:

Anagrams

Source Notebook

Find all the anagrams of a word

Contributed by: Sander Huisman

ResourceFunction["Anagrams"][string]

finds all the anagrams of string.

Details and Options

The case of the letters are ignored.
The original string is removed from the list of anagrams.

Examples

Basic Examples

Find an anagram of “feel”:

In[1]:=
ResourceFunction["Anagrams"]["feel"]
Out[1]=

Some words have many anagrams:

In[2]:=
ResourceFunction["Anagrams"]["steal"]
Out[2]=

Resource History

Related Resources

License Information