ERXGoogleSpell Class Reference

List of all members.

Classes

class  Correction
class  CorrectionException

Static Public Member Functions

static String correct (String text, String lang, String hl, boolean escapeXml) throws CorrectionException
static String correct (String text, String lang, String hl) throws CorrectionException
static String correct (String text, String lang) throws CorrectionException
static String correct (String text) throws CorrectionException
static void main (String[] args) throws CorrectionException
static Correction[] suggestions (String text, String lang, String hl, boolean escapeXml) throws CorrectionException
static Correction[] suggestions (String text, String lang, String hl) throws CorrectionException
static Correction[] suggestions (String text, String lang) throws CorrectionException
static Correction[] suggestions (String text) throws CorrectionException


Detailed Description

ERXGoogleSpell provides a simple API to spell checking with Google's web service.

This code is based on the work from the blog post http://immike.net/blog/2007/04/07/hacking-google-spell-checker-for-fun-and-profit/.

Author:
mschrag

Member Function Documentation

static String correct ( String  text,
String  lang,
String  hl,
boolean  escapeXml 
) throws CorrectionException [static]

Corrects the spelling of the given text.

Parameters:
text the misspelled text
lang the language of the text
hl the human interface language
escapeXml if true, xml characters in the text will be escaped
Returns:
the corrected text
Exceptions:
CorrectionException if there is a problem correcting the text

static String correct ( String  text,
String  lang,
String  hl 
) throws CorrectionException [static]

Corrects the spelling of the given text (escaping XML).

Parameters:
text the misspelled text
lang the language of the text
hl the human interface language
Returns:
the corrected text
Exceptions:
CorrectionException if there is a problem correcting the text

static String correct ( String  text,
String  lang 
) throws CorrectionException [static]

Corrects the spelling of the given text (escaping XML).

Parameters:
text the misspelled text
lang the language of the text
Returns:
the corrected text
Exceptions:
CorrectionException if there is a problem correcting the text

static String correct ( String  text  )  throws CorrectionException [static]

Corrects the spelling of the given text (language = "en", escaping XML).

Parameters:
text the misspelled text
Returns:
the corrected text
Exceptions:
CorrectionException if there is a problem correcting the text

static void main ( String[]  args  )  throws CorrectionException [static]

static Correction [] suggestions ( String  text,
String  lang,
String  hl,
boolean  escapeXml 
) throws CorrectionException [static]

Returns possible spelling corrections of the given text.

Parameters:
text the misspelled text
lang the language of the text
hl the human interface language
escapeXml if true, xml characters in the text will be escaped
Returns:
the list of suggested corrections
Exceptions:
CorrectionException if there is a problem correcting the text

static Correction [] suggestions ( String  text,
String  lang,
String  hl 
) throws CorrectionException [static]

Returns possible spelling corrections of the given text (escaping XML).

Parameters:
text the misspelled text
lang the language of the text
hl the human interface language
Returns:
the list of suggested corrections
Exceptions:
CorrectionException if there is a problem correcting the text

static Correction [] suggestions ( String  text,
String  lang 
) throws CorrectionException [static]

Returns possible spelling corrections of the given text (escaping XML).

Parameters:
text the misspelled text
lang the language of the text
Returns:
the list of suggested corrections
Exceptions:
CorrectionException if there is a problem correcting the text

static Correction [] suggestions ( String  text  )  throws CorrectionException [static]

Returns possible spelling corrections of the given text (language = "en", escaping XML).

Parameters:
text the misspelled text
Returns:
the list of suggested corrections
Exceptions:
CorrectionException if there is a problem correcting the text


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