The ambiguous T9 encoder converts text into the digit sequence you would press on a phone keypad without recording how many times you tapped. Because each digit covers three or four letters, the result is intentionally ambiguous — exactly the input a predictive T9 dictionary takes in and resolves to a likely word.
How it works
Every letter is replaced by the single digit of the key it sits on, using the ITU-T E.161 layout, and words are kept together:
2 ABC 3 DEF 4 GHI 5 JKL 6 MNO 7 PQRS 8 TUV 9 WXYZ 0 space
HOME -> 4 6 6 3 -> 4663
4663 could also be: GOOD, GONE, HOOD, HOME, INME …
Spaces become the 0 key, digits pass through, and other characters stay as-is.
Example and notes
The word HOME encodes to 4663, the same code as GOOD and GONE. That
collision is the whole point: on old phones the software offered each candidate in
turn and you cycled to the right one. To read an ambiguous code back you need a
word list, whereas the multi-tap encoder produces a sequence that is uniquely
decodable on its own.