This Kotlin program takes in a list of words and spits out a binary file containing a serialized Trie that can be traversed by this project's firmware.
There is an instance of this program hosted online! Generate your library file here.
- Add/remove words from the
dict.txtfile. - All words should be separated by a newline character.
- words should be lowercase, and only contain the characters
a-z - if you want to use an entirely different file, be sure to drop it in the resources
directory, and change the
DICT_FILEproperty in Main.kt to point to it.
- Run
main(). - Copy the
library.t9lfile on to your CIRCUITPY drive, next to the firmware (code.py). Be sure to make a backup of the old one if you don't want to lose it!