From within JavaScript, I need an array of all of the words that can be made from some random letters. Also, I need all of the possible combinations of letters (even if they are not words.) It would be great to find a code example written in JavaScript that (quickly) calculates string permutations. However, it doesn't seem too practical to place an entire dictionary into a page for the anagram part; so I am thinking it would be best to use JSON and download the results. Is there a public web service that will accept a string (let's say up to seven characters since 7! or 5040 permutations is not unreasonable) and return all anagrams and/or permutations of that string in JSON format?
2007-01-30
11:28:16
·
3 answers
·
asked by
§©®Î¶†Δ®
4
in
Computers & Internet
➔ Programming & Design