Please enable JavaScript.
Coggle requires JavaScript to display documents.
FA1: Spellchecker - Coggle Diagram
FA1: Spellchecker
Constraints
If the two swapped letters are not directly next to each other in the misspelled word, the program will not be able to recognise the issue.
The program only checks adjacent keys as those that are directly left and right of the pressed key, not above and below.
Cannot recognise numbers as adjacent keys, and the program will break if any are inputted.
-
Words cannot have more than 6 letters in them, or the slicing to switch letters based on the 2-letter splits won't work.
The mistake includes use of a number, which will not be recognized as an edge case.
-
Self-determined criteria
-
The program should be able to detect if two or more different kinds of errors have been made within the same word.
The program should split each inputted word multiple times, moving along by a character each time, to make sure that all errors are recognised and absolved.
Prescribed criteria
Program must be able to recognise if a word is misspelled and provide the user with correctly spelt words based off their input.
-
Have suitable comments, including in-line referencing where applicable.