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
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:
-
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:
-
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:
-
Corrects the spelling of the given text (language = "en", escaping XML).
- Parameters:
-
- Returns:
- the corrected text
- Exceptions:
-
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:
-
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:
-
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:
-
Returns possible spelling corrections of the given text (language = "en", escaping XML).
- Parameters:
-
- Returns:
- the list of suggested corrections
- Exceptions:
-
The documentation for this class was generated from the following file:
- /opt/source/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/components/javascript/ERXGoogleSpell.java