Question: 1. Simple Spell Checker (spellChecker.c) In this exercise you will design and implement a basic spell checker program. Specifically, you will write a program that

 1. Simple Spell Checker (spellChecker.c) In this exercise you will design

1. Simple Spell Checker (spellChecker.c) In this exercise you will design and implement a basic spell checker program. Specifically, you will write a program that opens a text file, processes checks its spelling against a dictionary file of words to determine if it is a valid English word each word separately and All of your code should be placed in one file named spellChecker.c. The program accepts the test file name (infile.txt) as a command line argument so that it is executable like this: /spellChecker infile.txt Your program should open the input file and spell check each individual word. You may assume that each word is separated by some whitespace, and you may assume that there are no multiline or hyphenated words. Ignore all punctuation characters (,. ? !), white space and new line character when spell checking Use the dictionary available on the CSE system. The dictionary is contained in a plaintext file, /usr/share/dict/american which contains thousands of english words (one on each line) to spell check each word. While reading each word from the dictionary ignore the new line character. Your output should produce a list of misspelled or unrecognized words (words not contained in the dictionary file) Sample Output Misspelled words in infile.txt acceptible quit amature cromulent You have to submit the following file containing the solution of this program via handin: spellChecker.c 1. Simple Spell Checker (spellChecker.c) In this exercise you will design and implement a basic spell checker program. Specifically, you will write a program that opens a text file, processes checks its spelling against a dictionary file of words to determine if it is a valid English word each word separately and All of your code should be placed in one file named spellChecker.c. The program accepts the test file name (infile.txt) as a command line argument so that it is executable like this: /spellChecker infile.txt Your program should open the input file and spell check each individual word. You may assume that each word is separated by some whitespace, and you may assume that there are no multiline or hyphenated words. Ignore all punctuation characters (,. ? !), white space and new line character when spell checking Use the dictionary available on the CSE system. The dictionary is contained in a plaintext file, /usr/share/dict/american which contains thousands of english words (one on each line) to spell check each word. While reading each word from the dictionary ignore the new line character. Your output should produce a list of misspelled or unrecognized words (words not contained in the dictionary file) Sample Output Misspelled words in infile.txt acceptible quit amature cromulent You have to submit the following file containing the solution of this program via handin: spellChecker.c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!