it predicts what you're going to type next. this is really nothing new. perhaps the most interesting use of predicting input in this fashion is dasher:
http://www.inference.phy.cam.ac.uk/dasher/
it uses this prediction to make it efficient for people who cannot type, type.