Google Toolbar Spell Check API

Posted Tuesday, July 19, 2005 12:29 AM by pwelter34
I saw in this post that the Google toolbar could be extracted and looked at. So, I spend an afternoon reverse engineering the spell checker api. The api ends up to be very easy to use. Checking is done with an HTTP post to http://www.google.com/tbproxy/spell?lang=en&hl=en. The xml structure looks like this...
 
<?xml version="1.0" encoding="utf-8" ?>
<spellrequest textalreadyclipped="0" ignoredups="0" ignoredigits="1" ignoreallcaps="1">
    <text>Ths is a tst</text>
</spellrequest
>
 
The response look like ...
 
<?xml version="1.0" encoding="UTF-8"?>
<spellresult error="0" clipped="0" charschecked="12">
    <c o="0" l="3" s="1">This Th's Thus Th HS</c>
    <c o="9" l="3" s="1">test tat ST St st</c>
</spellresult
>
 
Tag
Description
o
the offset from the start of the text of the word
l
length of misspelled word
s
Confidence of the suggestion
text
tab delimited list of suggestions
 
I created a complete C# GoogleSpell library as a demo. The library can be download at http://www.loresoft.com/files/uploads/GoogleSpell.zip
 
Here is an example on how to use GoogleSpell …
 
string text = "ths is a tst";
SpellRequest request = new SpellRequest(text);

SpellResult result = SpellCheck.Check(request);

foreach (SpellCorrection correction in result.Corrections)
{
    Console.WriteLine("Misspelled: {0} ({1}:{2})"
        text.Substring(correction.Offset, correction.Length), 
        correction.Offset, correction.Length);

    foreach(string suggestion in correction.Suggestions)
    {
        Console.WriteLine("    {0}", suggestion);
    }
}
 
I plan to develop an ajax web client for the google spell api.  This will be really sweet as it won't require anything to be installed on the sever other then a js file.  I'll post again when I have the web client complete.
 
~ Paul
Filed under:

Comments

# re: Google Toolbar Spell Check API

Sunday, July 30, 2006 2:13 AM by kia

thankyou

# BrideL.OrG &raquo; Blog Archive &raquo; Flex Spell Checker Component

# Terry&#8217;s Worklog &raquo; Dspace hack #2 &#8212; Did you mean?

Friday, September 22, 2006 1:22 AM by Terry’s Worklog » Dspace hack #2 — Did you mean?

# I&#8217;m Mike &raquo; Blog Archive &raquo; Hacking Google Spell Checker for Fun and Profit

# re: Google Toolbar Spell Check API

Friday, July 27, 2007 8:58 PM by Mary E Kelly

I want to install your spell check and you will not let me.

Stop using Spanish instesd of English

# re: Google Toolbar Spell Check API

Saturday, July 28, 2007 9:03 PM by Mary E Kelly

I want Google to add a spell check to the tool bar How do I do it?

# re: Google Toolbar Spell Check API

Sunday, October 07, 2007 3:57 PM by hasan.ottoman

google tool bar with spell check

# re: Google Toolbar Spell Check API

Tuesday, November 27, 2007 2:50 PM by ziad

I need Toolbar spell check

# re: Google Toolbar Spell Check API

Wednesday, January 02, 2008 3:29 PM by Dilish

Its really interesting..

But it seems the link is not working for me.

www.loresoft.com/.../googlespell.zip  

Please help

Thanks

Dilish

# re: Google Toolbar Spell Check API

Friday, February 22, 2008 9:15 AM by Dan

Looks good, but probably doesn't work.

The xml I every time get in response is:

<?xml version="1.0" encoding="UTF-8" ?>

 <spellresult error="1" />

Please, say your ideas, why?

Thanks in advance,

Dan

# re: Google Toolbar Spell Check API

Friday, February 29, 2008 5:14 PM by wilbertharden

all I want too know is: how can I install the spell check function on my google desktop

# re: Google Toolbar Spell Check API

Tuesday, March 11, 2008 7:46 AM by mihalich

thanks. you helped me a lot.

# re: Google Toolbar Spell Check API

Thursday, March 13, 2008 2:50 PM by Olga

I wrote the program in Java to send the HTTP POST (using same xml file).

Got the response :

<?xml version="1.0"?>

<spellresult error="0" clipped="0" charschecked="-1"/>

Do you have any ideas why?

# Component | FlexSpellCheck with source code &laquo; Flash Enabled Blog

Pingback from  Component | FlexSpellCheck with source code &laquo; Flash Enabled Blog

# re: Google Toolbar Spell Check API

Friday, May 09, 2008 11:53 PM by Estella Franco

Hi,

I have a Yahoo tool bar but I need Spell Check from

google.  How do I do that?

Thank you,

Estella Franco

# re: Google Toolbar Spell Check API

Saturday, May 10, 2008 1:54 AM by Estella Franco

Hi,

Need your Google Spell Check Tool Bar.  How do I get it?

Thanks,

Estella

# re: Google Toolbar Spell Check API

Wednesday, May 14, 2008 6:32 PM by Magda

need your google check speller tool bar

# re: Google Toolbar Spell Check API

Wednesday, July 16, 2008 11:52 PM by mary

i am not a greatspeller,i have yahoo.com i want google as my email wab

# re: Google Toolbar Spell Check API

Wednesday, July 30, 2008 7:23 PM by Susan

Do I have to install the google toolbar in order to use the spellcheck api code?

# spell check add on to tool bar

Friday, August 01, 2008 10:56 PM by spell check add on to tool bar

Pingback from  spell check add on to tool bar

# re: Google Toolbar Spell Check API

Thursday, August 07, 2008 3:47 PM by walt slaughter

I inadvertantly deinstalled my toolbar row with among other things, spell check.  I would dearly love to reinstall it.

# re: Google Toolbar Spell Check API

Saturday, August 16, 2008 3:30 PM by owen wright

I am trying to download spellcheck for microsoft word.

# re: Google Toolbar Spell Check API

Friday, August 22, 2008 9:52 PM by Frances

please can you help me i need spell check on my computer

# re: Google Toolbar Spell Check API

Saturday, October 04, 2008 11:38 AM by Online Spell Check

Thank you for short and clear tutorial. We implemented part of this code at http://spellcheck.cc/ This works like a charm!

# re: Google Toolbar Spell Check API

Saturday, October 18, 2008 8:05 PM by david cuuman

because it gone of my tool bar

# Using the Google APIs to Spell Check - EXPERTS ADVICE FORUM

Saturday, November 08, 2008 12:02 AM by Using the Google APIs to Spell Check - EXPERTS ADVICE FORUM

Pingback from  Using the Google APIs to Spell Check - EXPERTS ADVICE FORUM

# re: Google Toolbar Spell Check API

Saturday, November 08, 2008 3:25 PM by sarah oparanadi

I would like to have spell check on my tmoble phone

# re: Google Toolbar Spell Check API

Monday, November 10, 2008 6:33 PM by ZIA

NEED TO ISTALL SPELL CHECK WITH COMPOSE MAIL

# re: Google Toolbar Spell Check API

Tuesday, November 18, 2008 4:54 PM by jefft609@gmail.com

please re-install spell check on my connection.

                             thanks

# re: Google Toolbar Spell Check API

Tuesday, November 18, 2008 4:57 PM by jefft609@gmail.com

I really need help with my spelling.

# re: Google Toolbar Spell Check API

Saturday, December 13, 2008 8:26 PM by Michael Brown

I love google spell checker

# Spell check with Zend_Json_Server &amp; pspell | braindump

Wednesday, January 14, 2009 9:52 PM by Spell check with Zend_Json_Server & pspell | braindump

Pingback from  Spell check with Zend_Json_Server &amp; pspell | braindump

# re: Google Toolbar Spell Check API

Monday, January 26, 2009 8:04 AM by geoser

Original post is here:

www.loresoft.com/.../default.aspx

So you can download the library from here: www.loresoft.com/.../GoogleSpell.zip

# re: Google Toolbar Spell Check API

Wednesday, February 18, 2009 10:31 AM by Barnabas Nagy

Hey, thanks for the post! I was googling this because I wrote on the same topic (http://is.gd/jXH5) and then I found you. Keep up the good work!

# re: Google Toolbar Spell Check API

Friday, March 06, 2009 5:12 PM by glenna meeks

want to put spell check on my tool bar

# re: Google Toolbar Spell Check API

Saturday, April 18, 2009 9:02 PM by afshin

i lick to have  spelling check in my tool bar

# re: Google Toolbar Spell Check API

Thursday, May 07, 2009 12:42 PM by mario gonzalez flores

My lenguage is Spanish and I need the Google speling tool bar urgently

Thank You

# re: Google Toolbar Spell Check API

Saturday, August 22, 2009 2:51 PM by migdalia ortiz

l want the google toolbar spell check apl on my toolbar  ok think you

# re: Google Toolbar Spell Check API

Wednesday, August 26, 2009 10:41 AM by Carl

Works great!  Got it to work in Actionscript 3.  Thanks!

# re: Google Toolbar Spell Check API

Wednesday, September 09, 2009 10:29 PM by Frances Wolfe

I want the google toolbar spell check apl on my toolbar. ok thank you

# re: Google Toolbar Spell Check API

Sunday, October 25, 2009 6:59 PM by Florentino Barril SR

Easy access for my wrining

# re: Google Toolbar Spell Check API

Wednesday, January 13, 2010 2:35 AM by Michael Amadore

This code and the attachment is not working.

# re: Google Toolbar Spell Check API

Sunday, February 21, 2010 2:20 AM by rock

i need speel chek on my toolbar

# re: Google Toolbar Spell Check API

Saturday, March 06, 2010 5:32 PM by Peter Shultz

I want spell check on my tool bar

Leave a Comment

(required) 
(required) 
(optional)
(required)