Depends on the keyboard you're using but some of them function off an internal datastore of your usage, effectively learning common phrases and word pairings. Swiftkey is excellent at this, you can even point it at gmail, facebook and twitter to learn more. ACtually it's excellent full stop, being nicely configurable, supports multiple language predictions without having to switch language, and now has a swype style functionality that works much better in my experience.