Please enable JavaScript.
Coggle requires JavaScript to display documents.
Misspelt Word - Coggle Diagram
Misspelt Word
Scenario 1: Missing Character
Create a for loop that adds every letter from the alphabet into one position in the user input's word
Check each new word with dictionary
If any match, added the matching word to suggestions
If none match: no suggestions
Generate an alphabet string
Scenario 5: Double characters
Identify any double letters in user input
Remove 1 of them
Check with dictionary
If no suggestions
Add no Suggestions:
Or identify different double letter and remove one of those and check with dictionary
If word matches with dictionary: Add word to suggestions
Scenario 2: Additional Character
Create a for loop that removes 1 letter from the user input at a time
Check each newly generated word with dictionary
If none match: No suggestions
If any match: add the word to suggestions