Project Wonder 5.0.0.8787

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 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, 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.
 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,
                                 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 String[] suggestions()
Returns an ordered list of suggested spelling corrections.


Last updated: Wed, Jan 7, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.