Hello Mike/ Project Wonder Team, I see a bug in the ERXGoogleSpell API and just want to bring to your attention. Please validate.
In the suggestions(text, lang, hl) method, I think we should pass-in 'hl' as the last argument after '&hl=' query string, but 'lang' is passed instead: Current Code: URL url = new URL("https://www.google.com/tbproxy/spell?lang=" + lang + "&hl=" + lang); Modified/Fixed Code: URL url = new URL("https://www.google.com/tbproxy/spell?lang=" + lang + "&hl=" + hl); Code snippet from ERXGoogleSpell.java : ------------------------------------- public static Correction[] suggestions(String text, String lang, String hl) throws CorrectionException { try { StringBuffer request = new StringBuffer(); request.append("<spellrequest textalreadyclipped=\"0\" ignoredups=\"1\" ignoredigits=\"1\" ignoreallcaps=\"0\"><text>"); request.append(ERXStringUtilities.escapeNonXMLChars(text)); request.append("</text></spellrequest>"); URL url = new URL("https://www.google.com/tbproxy/spell?lang=" + lang + "&hl=" + lang); -------------------------------------- Please advise. Thank You, Shravan ----------------------- Forwarded Message: Re: Spell Check with WebObjects Re: Spell Check with WebObjectsSunday, November 9, 2008 6:56 PM From: "Mike Schrag" <[EMAIL PROTECTED]> To: "webobjects List" <webobjects-dev@lists.apple.com> > Am planning to use ERXGoogleSpell as earlier suggested by Mike. So, does this > limitation needs to be considered? sure > and BTW, do I need to get any key to use this service for Live WebObjects > application. I would assume you need a key ... The google docs will tell you. ms _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]