title: Google Spell Checker API
body: <p>Does anyone know? I pass spell check "accelerants" which is a perfectly good word. I get back "accelerates"? When I open Google in a browser and type "accelerants" it does NOT suggest "accelerates"?</p>
  
  <pre><code>using System;
  using System.Net;
  using System.Text;
  using System.Text.RegularExpressions;
  
  namespace SpellCheck
  {
      class googel_SP
      {
          public string word;
          public void run_G()
          {
              string retValue = string.Empty;
              string Iword = "accelerants";
  
              try
              {
                  string uri = "https://www.google.com/tbproxy/spell?lang=en:";
                  using (WebClient webclient = new WebClient())
                  {
                      string postData = string.Format("&lt;?xml version=\"1.0\"     encoding=\"utf-8\" ?&gt; " 
                      + "&lt;spellrequest textalreadyclipped=\"0\" ignoredups=\"0\"     ignoredigits=\"1\" "
                      + "ignoreallcaps=\"1\"&gt;&lt;text&gt;{0}&lt;/text&gt;&lt;/spellrequest&gt;", Iword);
  
                      webclient.Headers.Add("Content-Type", "application/x-www-form-    urlencoded");
                      byte[] bytes = Encoding.ASCII.GetBytes(postData);
                      byte[] response = webclient.UploadData(uri, "POST", bytes);
                      string data = Encoding.ASCII.GetString(response);
                      if (data != string.Empty)
                      {
                          retValue = Regex.Replace(data, @"&lt;(.|\n)*?&gt;",     string.Empty).Split('\t')[0];
                          Console.WriteLine(" word in -&gt; " + word + " word out -&gt; " +      retValue);
                      }
                  }
              }
              catch (Exception exp)
              {
  
              }
              //return retValue;
          }
      }
  
   }
  </code></pre>