Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*******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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago