Question
*******C Programming******* Simple Spell Checker (spellChecker.c) In this exercise you will design and implement a basic spell checker program. Specifically, you will write a program
*******C Programming*******
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 each word separately and checks its spelling against a dictionary file of words to determine if it is a valid English word. 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 file, 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started