Anagram Solver
Check if two words or phrases are anagrams of each other and find all anagrams.
Enter both words to check.
About this tool
An anagram solver is a utility that finds words or phrases made by rearranging the letters of another word or phrase. This tool is invaluable for word game enthusiasts, crossword puzzlers, and writers looking to discover unexpected combinations of letters that form valid English words. Whether you're playing Scrabble, solving a riddle, or simply exploring linguistic possibilities, an anagram solver quickly reveals all valid words hidden within a given set of letters.
To use the anagram solver, enter a word or phrase and the tool instantly generates a list of valid anagrams. You can filter results by word length, arrange them alphabetically or by frequency, and copy them for use in games or puzzles. The tool handles multi-word inputs, common letter combinations, and even partial matches if you're not sure of the exact letters you want to rearrange. Typical use cases include preparing for word games, creating word puzzles, finding alternative phrasings, or discovering wordplay for creative writing.
Frequently Asked Questions
Code Implementation
from itertools import permutations
def get_anagrams(letters: str, word_list: list[str]) -> list[str]:
"""Find all words that are anagrams of the given letters."""
sorted_letters = sorted(letters.lower())
anagrams = []
for word in word_list:
if sorted(word.lower()) == sorted_letters:
anagrams.append(word)
return anagrams
# Example usage
words = ["listen", "silent", "enlist", "hello", "world", "inlets"]
result = get_anagrams("listen", words)
print(result) # ['listen', 'silent', 'enlist', 'inlets']
Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.