|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.components.javascript.ERXGoogleSpell.Correction
public static class ERXGoogleSpell.Correction
Correction encapsulates a suggested spelling correction for a word in a string of text.
Constructor Summary | |
---|---|
ERXGoogleSpell.Correction(int offset,
int length,
int confidence,
java.lang.String[] suggestions)
Creates a new correction. |
Method Summary | |
---|---|
int |
confidence()
Returns the confidence of the correction (0 or 1). |
int |
length()
Returns the length of the misspelled word in the original text. |
int |
offset()
Returns the offset of the misspelled word in the original text. |
java.lang.String[] |
suggestions()
Returns an ordered list of suggested spelling corrections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ERXGoogleSpell.Correction(int offset, int length, int confidence, java.lang.String[] suggestions)
offset
- the offset of the misspelled in the original textlength
- the length of the misspelled word in the original textconfidence
- the confidence of correction (0 or 1)suggestions
- the list of suggested correctionsMethod Detail |
---|
public int offset()
public int length()
public int confidence()
public java.lang.String[] suggestions()
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |