• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[BUG] ERXGoogleSpell API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] ERXGoogleSpell API


  • Subject: [BUG] ERXGoogleSpell API
  • From: shravan kumar <email@hidden>
  • Date: Sun, 7 Dec 2008 12:07:59 -0800 (PST)

Hello Mike/ Wonder Team,

I see ERXGoogleSpell API has missed to address one use case:

If Spell Checker can identify the error word, but is unable to suggest the correct words.

#1 ERXGoogleSpell API did not implement this use case.

#2 Due to which, if the underlying spell checker is unable suggest the correct words, ERXGoogleSpell API is breaking down abruptly.

#3 If there are 10 error words spell checker has identified, and has suggestions for 1 to 4 and 6 to 10 error words, but for the 5th word it has no suggestions, ERXGoogleSpell API generates an exception and fails to move forward and construct suggestions list for 6 to 10 error words and finally fails to even respond to user suggestions for 1 to 4 error words.

#4 I see "suggestions(String text, String lang, String hl)" api has this bug and needs to be fixed. I have even pin-pointed the line causing this issue, it is as below:

ERROR Statement:

String correctionsStr = correctionElement.getChildNodes().item(0).getNodeValue();

IN the above statement, for this scenario,

"correctionElement.getChildNodes().item(0)" is null and is getting worried when it is trying to access getNodeValue() on null object.


FIX:

String correctionsStr = "";
String correctionsNodeItem = correctionElement.getChildNodes().item(0);

if(correctionsNodeItem != null) {

	correctionsStr = correctionElement.getChildNodes().item(0).getNodeValue();

}

Could you please advise, when can I have this fix available to be used in my application.

Please advise an alternative, if any.

Thanks for your co-operation and look forward to your responses.

PS: Do we have any mechanism to identify the version of ERXtensions or Project Wonder we are using in our system?

Thank You,
Shravan



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [BUG] ERXGoogleSpell API
      • From: Mike Schrag <email@hidden>
    • Re: [BUG] ERXGoogleSpell API
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: [SOLVED] ERXGoogleSpell issue : The entity name must immediately follow the '&' in the entity reference.
  • Next by Date: Re: [SOLVED] ERXGoogleSpell issue : The entity name must immediately follow the '&' in the entity reference.
  • Previous by thread: Re: [SOLVED] ERXGoogleSpell issue : The entity name must immediately follow the '&' in the entity reference.
  • Next by thread: Re: [BUG] ERXGoogleSpell API
  • Index(es):
    • Date
    • Thread