The QuickType/Predictive typing feature found in iOS 8 has made its way to OS X Yosemite.
Although a similar feature has been used in OS X since at least Snow Leopard, accessible by hitting the ESC key, this ups the functionality by not just offering an autocomplete/autocorrect feature, but actually suggesting entire untyped words which can go on to write complete sentences.