Reimplementation of the SIL Graphite text processing engine