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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]