Now You Code 1: Spellchecker

Let's build a rudimentary spell checker. The basic idea is as follows:

  • provide a list of correctly spelled words
  • check the input words against the list of correctly spelled words
  • output any words not in the list.

Of course we cannot provide every possible word, but we'll try that in a later assignment. Also, DO NOT consider the above an algorithm. Your actual algorithm should be much more detailed than the above.

Sample run:

Enter some text: The boy went to the stroe.

Possible mispellings:
boy
stroe

Make sure to remove capitalizations and puncuations from the text.

Step 1: Problem Analysis for full Program

Inputs:

Outputs:

Algorithm (Steps in Program):


In [2]:
## Step 2: todo write code for full problem

Step 3: Questions

  1. Part of your solution should be re-factored into a function. Which part? Why?

Answer:

  1. Devise a strategy to differentiate from a word that's not in the list versus a misspelled word in the list.

Answer:

Step 4: Reflection

Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?

To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.

Keep your response to between 100 and 250 words.

--== Write Your Reflection Below Here ==--