answersLogoWhite

0

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

11y ago

What else can I help you with?

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


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 is the discovery paragraph in an essay?

write a paragraph of discovery


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


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."


How do you write a 3 paragraph essay on how to groom a horse?

how do i write a 3 paragraph essay on how to groom a horse


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 a sentence for paragraph?

This paragraph makes no sense.Your homework is to write a paragraph about Da Vnici's childhood.


How do you write a 5 paragraph essays?

1. Write a paragraph. 2. Repeat Step 1 four times.