How would you go about spell checking player inputted words?

Hello everyone! The game I want to make invloves players typing sentences, but my problem is I need to check the spelling of each word in their sentence, and possibly offer them what word they may have meant. Does anyone know how I could go about doing that?

I think you need what’s called LED(Levenshtein Edit Distance) to calculate the edit distance and then suggest the words they have possibly meant.