Welcome to MSDN Blogs Sign in | Join | Help

The Microsoft Office Word Team's Blog

All things Microsoft Office Word, from the Word team.
Contextual Spell Checking

Spellchecking is not perfect, but I would not have gotten through school without it. :)

Despite my love for spelling and grammar checking, I'm aware of its limitations.

Specifically, previous versions of Word will tell you when what you type is misspelled or grammatically incorrect, but it does not catch correctly spelled words in the incorrect context. For example, think of the times you've typed "go" and meant "got", "toll" and meant "told", "some time" and meant "sometime", etc. In these cases, your sentence/phrase likely didn't make sense, but previous versions of Word didn't squiggly underline the error because nothing was misspelled or grammatically incorrect.

This type of contextual limitation is epitomized by the anonymously authored poem "Ode to My Spell Checker":

Eye halve a spelling checker
It came with my pea sea.
It plainly marks four my revue miss steaks eye kin knot sea.
Eye strike a quay and type a word and weight for it to say
Weather eye yam 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.
Its rare lea ever wrong.
Eye have run this poem threw it,
I am shore your pleased to no.
Its letter perfect awl the way.
My checker told me sew.

With these limitations in mind, in Word 2007 we've got contextual spell checking. Specifically, in Word 2007 we'll catch errors in each of these sentences, not just the first two:

As always, the red squiggly underline indicates a spelling error and the green squiggly underline indicates a grammar error. Now we've got blue squiggly underlines to flag words that are likely inappropriate given their context. In the third sentence, when you right-click on "loose" we suggest "lose". Nice.

The Microsoft Speech & Natural Language group that created this technology has a great blog and a specific post on contextual spell checking here.

To wrap-up, contextual spell checking is a step in the write direction :) For example, here's a brief list of some sentences that Word 2007 squiggles and are squiggle free in Word 2003.

Let us know what you think…

-Jonathan & Margaret

Posted: Wednesday, October 25, 2006 7:14 AM by wrdblog

Comments

Geoff Van Brunt said:

Pretty cool. Could have saved my butt in that past. I forgot the final s on "assess" in a document I wrote. Since I wansn't suppossed to be talking about a couple of donkeys the recipients were not amused...

Bottom line - make sure the new checker, checks for assess and asses.

Thanks

# October 25, 2006 11:53 AM

wrdblog said:

Hi Geoff – Great and funny example. I love hearing about examples of contextual slipups, and then seeing if we catch them.

FYI: In the sentence: “The plaintiff will asses the damages no later than Tuesday.” the word “asses” gets a blue squiggly, and “assess” is suggested. :)

-Jonathan

# October 25, 2006 12:05 PM

VaibhavGarg said:

Hi Jonathan,

Did you try running the poem "Ode to My Spell Checker" through the contextual spelling checker?

It catches quite a few, but several others give it a slip. But I am sure that this feature will be indispensible, and much more powerful, with better and improved algorithms that you keep developing for the future releases. Way to go!

# October 25, 2006 1:18 PM

wrdblog said:

Just corrected link to the Microsoft Speech & Natural Language group's specific post on contextual spell checking

-Jonathan

# October 25, 2006 1:41 PM

Leo Gertsenshteyn said:

Vaibhav,

Unfortunately, a lot of that poem is just nonsense. The Contextual Spell Checker relies on clues in the nearby words that something funny is going on. With random collections of words, we don't have any way to figure out what you really meant. :)

--Leo

Natural Language Group

# October 25, 2006 4:06 PM

Brandon Bloom said:

Yea, future versions of the Contextual Spell Checker should be able to knock that poem out of the park.

It seems like homonym recognition (maybe looking up pronunciation in a dictionary) could go a long way towards solving the problem.

# October 25, 2006 5:25 PM

VaibhavGarg said:

Could someone here tell me what are the minimum memory requirements in this feature? AFAIK, in B2 this was turned off by default for anyone having less than 1GB of RAM. Is that the case with the RTM build as well?

I have been runnning this feature on 4 systems with 128,256,512, and 1GB of RAMs respectively and am yet to see a substantial performance hit. Most users may not be able to figure out that this feature is there without turning it on by default.

# October 25, 2006 10:36 PM

wrdblog said:

Hi Vaibhav – At least 1GB of RAM is required for contextual spell checking to be turned on by default.  

-Jonathan

# October 26, 2006 11:33 AM

Stephen Mok said:

Contextual spell checking is great, but the biggest problem with it is that blue squiggly underlines are already used by another feature in Word - the highlighting of formatting inconsistencies!

Surely one of you in the Word team noticed this? How about changing one of them to use a purple underline instead?

I love Word 2007, but this issue bugs me to no end. <em>Please</em> fix this soon!

# October 29, 2006 8:11 AM

Ute Simon said:

Nice and very helpful feature! Especially for people like me, whose native language is not English, but working in an international environment and having to write it every day. I think you can guess my next question ;-) Will this feature be also available in other versions of Word 2007, like the German version? I have not noticed any blue squiggles yet. (Cannot be a RAM problem, I have 2 GB.)

Best regards - Ute

# October 30, 2006 2:46 AM

wrdblog said:

Hi Ute – Contextual spelling currently only works for English. We’re looking to expand the feature to other languages in future releases.

# October 31, 2006 11:43 AM

wrdblog said:

Hi Stephen – Good catch. We are aware of this issue and feel the benefits of blue outweigh the costs. You can change the color of contextual spelling squiggles via a registry key in RTM Word 2007.

-Jonathan

# October 31, 2006 11:45 AM

Stephen Mok said:

Good to know you are aware of the issue, Jonathan! Thanks for replying.

I don't mind which feature uses blue underlines. I just wish that the other feature would then use a different colour.

Though I'll admit... it really seems like I'm one of only six people on the planet who use the 'mark formatting inconsistencies' feature sometimes! :D

# November 2, 2006 7:47 AM

mary kozlowski said:

Wouldn't a different color wavy line be a better idea since the blue is associated with a hypertext link?  I suppose the wavy-ness is the distinction....

# November 2, 2006 12:27 PM

CorrecteurOrthographiqueOffice said:

J’ai eu l’occasion de parler sur ce blog (en anglais) du nouveau correcteur contextuel introduit pour

# November 20, 2006 12:46 AM

The Microsoft Office Word Team's Blog said:

We hope so. In fact, that's the motivation behind Word's ability to: Test the readability of Word documents

# June 26, 2007 7:23 PM

Relationship Compatibility said:

Spellchecking is not perfect, but I would not have gotten through school without it. :) Despite my love for spelling and grammar checking, I'm aware of its limitations. Specifically, previous versions of Word will tell you when what you type is misspelle

# June 7, 2008 8:43 PM
New Comments to this post are disabled
Page view tracker