For solving anagrams, you'll need a word list! Then you'll need to try all possible combinations of the inputed word against the word list.