A computer program product for correcting typographical errors in electronic text, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions readable by a processor to cause the processor to perform a method comprising:
- receiving a text message containing at least one phonemic spelling of a word;
- converting the text message into speech by running a text-to-speech application programming interface (API) with the text message as input;
- generating an audio file comprising at least the speech;
- playing the audio file as an input to a speech-to-text API and executing the speech-to-text API to convert the speech to a text corresponding to the played audio file;
- and
- generating a text file comprising at least the text corresponding to the played audio file,
- wherein the text corresponding to the played audio file automatically contains a corrected version of the phonemic spelling of the word in the received text message.