Racket implementation of Knuth–Liang hyphenation algorithm