Find the best possible T9 keyboard layout given a word list
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
1-1000.txt
LICENSE
README.md
constraints.py
test.py

README.md

T9^improved

Find the best possible T9 keyboard layout given a word list by minimizing the total annoyance introduced by textonyms.

For more info, read the blog entry at www.aldusleaf.org.

Running

To run this, simply download it and run

python constraints.py

which will generate a file constraints.mzn in the same directory. Convert this file to Flatzinc format via the mzn2fzn compiler provided with libminizinc, and pass the output to your favourite solver.