You might notice that Writer automatically corrects common spelling errors. If you type teh, it will automatically change it to the.
This feature is called AutoCorrect. You can see all of the entries for AutoCorrect by clicking Tools, then AutoCorrect.
You can even add AutoCorrect entries for common typos you make.