in reply to Solving Anagrams

The gson entry in the 1992 IOCCC winners may help, although it has the limitation that the alphabet must not be larger than 32 letters.