While I'm not an expert on tries, there seems to be a lot of potential there for your stated problem. Give it a look.
Here's a trie implementation in Perl.
In reply to Re: Words in Words
by thezip
in thread Words in Words
by sarchasm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |