Spell checkers use a dictionary database to compare the words in your email against. When a word is not found in the dictionary, the spell checker flags it as an error and suggests possible corrections. Some advanced spell checkers also use machine learning and natural language processing to provide more accurate suggestions and understand the context better.