Is there an "autocorrect" function?

Is there an "autocorrect" function?

I frequently write (in English) words with accents (generally French or German). Is there a function similar to AutoCorrect that would let me create an accented word that would appear when I write it without accents? Or, of course, that would correct a common typo? If there is none, can we hope for one?