Please enable JavaScript.
Coggle requires JavaScript to display documents.
Word Correction - Coggle Diagram
Word Correction
Types of typos
Two swapped letters, e.g. appel
Omitted letter, e.g. aple
Extra letter, e.g. appple
Replaced letter, e.g. spple
-
The most elementary mistakes are extra, omitted, and replaced letter, as these only manipulate one character, and all other typos can be seen as a combination of these
Limitations/constraints
Singular word, and not a sentence.
There will be no contextual word checking, based off surrounding words, including homophone fixers, e.g. "there", "their"
The solution is built with raw python, the only import being a module which contains a list of every single word in the English language
-
-
outputs
-
It is possible there might not be a solution. In this case, it the program should say there are none
inputs
-
The program should treat everything in lowercase, and not include whitespace
Success Criteria
When inputting a word with a typo mistake defined in the solution, the original word without a typo is outputted
e.g. My function fixes typos with an extra letter. I input "appple", and "apple" is outputted