public static class ERXGoogleSpell.Correction extends Object
| Constructor and Description |
|---|
Correction(int offset,
int length,
int confidence,
String[] suggestions)
Creates a new correction.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String[] |
suggestions()
Returns an ordered list of suggested spelling corrections.
|
public Correction(int offset,
int length,
int confidence,
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 correctionspublic int offset()
public int length()
public int confidence()
public String[] suggestions()
Copyright © 2002 – 2020 Project Wonder.