ERXGoogleSpell.Correction Class Reference

Collaboration diagram for ERXGoogleSpell.Correction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

int confidence ()
 Correction (int offset, int length, int confidence, String[] suggestions)
int length ()
int offset ()
String[] suggestions ()

Private Attributes

int _confidence
int _length
int _offset
String[] _suggestions


Detailed Description

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

Author:
mschrag

Constructor & Destructor Documentation

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


Member Function Documentation

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.


Member Data Documentation

int _confidence [private]

int _length [private]

int _offset [private]

String [] _suggestions [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:06 2012 for Project Wonder by  doxygen 1.5.8