Please enable JavaScript.
Coggle requires JavaScript to display documents.
Spelling suggestion engine - Coggle Diagram
Spelling suggestion engine
Potential issues
Efficiency of the solution
Since there are so many words to check against, having a the smallest amount of steps possible would be ideal
Only check words if necessary - dont need to suggest spelling suggestions if the word exists in the dictionary
Some words that are unknown could be believed to be misspelled but does exist in the dictionary
Spaces in the word
As it is a limited solution - a prototype - it might not be able to process spaces
Could treat it as a character
Could ignore spaces
Would require extra code
Potential solutions
Missing letter and Extra letter
Similar solution
check each letter in order to see if they match, if they do move onto next letter
Allow for one error to account for the single missing/extra letter
Spelled correctly
Check against english dictionary, if a match dont go through functions
if these wasn't a match, go through functions
swapped letters
break word into beginning, middle, end and swap the middle into all possible combinations
check letter combinations to see if its a word
choosing scenarios
Missing a letter
Common words missing a letter
Extra letter
common words with extra letter
2 Swapped adjacent letter
Common words with two adjacent letters swapped
3 swapped adjacent letters
Use common words with 3 gumbled up letters
Spelled correctly
Test with commonly known words
move onto functions if word doesn't match any in dictionary
Test with 'gibberish' words
these shouldn't be solved by the functions either
Altered words must not be proper words themselves