add support for text prediction

TODO fix overeager correction