answersLogoWhite

0


Best Answer

This is no mean feat; actually no spell-checker / grammar-checker does a perfect job. Something simple you could do is just to check whether each word is in a dictionary. The data structures you use will depend on the programming language chosen, but having your dictionary in an array would definitely be slow - you may want to use something like a hashtable or a binary tree instead. However, an array can work for a proof of concept.

If you write your program this way, something like an "Ode to the Spelling Checker" should pass without errors - although it is full of errors. The "Ode to the Spelling Checker" uses words that are in the dictionary - but the wrong word in each case, for example "eye" instead if "I", and "tolled" instead of "told". I paste a copy of the Ode here, for your easy reference - you'll have to read it out loud to make sense out of it!

Eye halve a spelling chequer

It came with my pea sea

It plainly marques four my revue

Miss steaks eye kin knot sea.

Eye strike a quay and type a word

And weight four it two say

Weather eye am wrong oar write

It shows me strait a weigh.

As soon as a mist ache is maid

It nose bee fore two long

And eye can put the error rite

It's rare lea ever wrong.

Eye have run this poem threw it

I am shore your pleased two no

It's letter perfect awl the weigh

My chequer tolled me sew.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a program to check the mistakes in paragraph?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you the re-write sentence of this question by correcting the mistakes in it?

You can use a grammar program to help you re-write a sentence of a question by correcting the mistakes in it. Spelling and punctuation are the two most common mistakes made when writing a sentence.


Why are you interested in this degree program?

Write a two- paragraph explanation to address the following questions: Why are you interested in this program (education) and how do you expect to benefit from it?


What is dolaji system write paragraph?

what dolaji system write paragraph


How do you write an application paragraph?

write a paragraph on past employment experience


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


In Every paragraph you write you should have a clear organization that explains what?

The purpose of the paragraph should be explained in every paragraph you write.


What are the dos and dont's of English comprehension?

always check your spellings in order to avoid mistakes and never forget to write the address


What is the discovery paragraph in an essay?

write a paragraph of discovery


Can you make a paragraph using this word edit?

WikiAnswers will not write your paragraphs for you. You need to to do your own homework. We will give you a hint. To edit means to change something and correct the mistakes. Here is a sample sentence: "I will edit my paragraph and make sure all the grammar and punctuation is correct."


Write a shell program to check and display 10 leap years?

dono


How do you write a 3 paragraph accident report for the frederal mine and safety?

you check over to see if the sentences make sense


What is the standard paragraph?

standard paragraph is a writin paragraph so u don't have to write it.