The way we say a word makes up its phonetics. Phonetics is the information of speech sounds. For instance, soul and sole sound identical in a lot of British-derived accents, such as Indian accents.
Quite often, words might be misspelled a little bit because the typist was trying to make it sound right. In this case, we leverage this phonetic information to map this typo back to the correct spelling.