predictable text via trie and dictionary

small-weight algorithm to produce autocorrect-like predictable text by means of a dictionary and trie