Project Wonder 5.0

er.extensions.components.javascript
Class ERXGoogleSpell.Correction

java.lang.Object
  extended by er.extensions.components.javascript.ERXGoogleSpell.Correction
Enclosing class:
ERXGoogleSpell

public static class ERXGoogleSpell.Correction
extends java.lang.Object

Correction encapsulates a suggested spelling correction for a word in a string of text.

Author:
mschrag

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

ERXGoogleSpell.Correction

public ERXGoogleSpell.Correction(int offset,
                                 int length,
                                 int confidence,
                                 java.lang.String[] suggestions)
Creates a new correction.

Parameters:
offset - the offset of the misspelled in the original text
length - the length of the misspelled word in the original text
confidence - the confidence of correction (0 or 1)
suggestions - the list of suggested corrections
Method Detail

offset

public int offset()
Returns the offset of the misspelled word in the original text.


length

public int length()
Returns the length of the misspelled word in the original text.


confidence

public int confidence()
Returns the confidence of the correction (0 or 1).


suggestions

public java.lang.String[] suggestions()
Returns an ordered list of suggested spelling corrections.


Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.