T9 Solver -

This is a "solver" in its purest form—a direct lookup engine.

: The solver takes a numeric string (e.g., 4663 ) and checks its internal dictionary for all words that match that pattern. t9 solver

dictionary = ["case", "base", "bard"] t9_index = {} for w in dictionary: code = word_to_t9(w) t9_index.setdefault(code, []).append(w) This is a "solver" in its purest form—a