public interface HunspellLibrary
extends com.sun.jna.Library
| Modifier and Type | Method and Description |
|---|---|
int |
Hunspell_analyze(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
Analyze word morphology
|
com.sun.jna.Pointer |
Hunspell_create(String affpath,
String dpath)
Create the hunspell instance
|
void |
Hunspell_destroy(com.sun.jna.Pointer pHunspell)
Destroy him my robots...
|
void |
Hunspell_free_list(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
int n)
Free the memory used by the lists created as output from the other functions.
|
String |
Hunspell_get_dic_encoding(com.sun.jna.Pointer pHunspell)
Get the dictionary encoding
|
int |
Hunspell_spell(com.sun.jna.Pointer pHunspell,
byte[] word)
spell(word) - spellcheck word
|
int |
Hunspell_stem(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
Find stem(s) for a word
|
int |
Hunspell_suggest(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
Search suggestions
|
com.sun.jna.Pointer Hunspell_create(String affpath, String dpath)
affpath - The affix filedpath - The dictionary filevoid Hunspell_destroy(com.sun.jna.Pointer pHunspell)
pHunspell - The Hunspell object returned by Hunspell_createint Hunspell_spell(com.sun.jna.Pointer pHunspell,
byte[] word)
pHunspell - The Hunspell object returned by Hunspell_createword - The word to spellcheck.String Hunspell_get_dic_encoding(com.sun.jna.Pointer pHunspell)
pHunspell - : The Hunspell object returned by Hunspell_createint Hunspell_suggest(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
pHunspell - The Hunspell object returned by Hunspell_createslst - input: pointer to an array of strings pointer and the (bad) word
array of strings pointer (here *slst) may not be initialized
output: number of suggestions in string array, and suggestions in
a newly allocated array of strings (*slts will be NULL when number
of suggestion equals 0.)word - The word to offer suggestions for.int Hunspell_analyze(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
pHunspell - The Hunspell object returned by Hunspell_createslst - input: pointer to an array of strings pointer and the word to analyze
array of strings pointer (here *slst) may not be initialized
output: number of analyses in string array, and analyses in
a newly allocated array of strings (*slts will be NULL when number
of analyses equals 0.)word - The word to analyze.int Hunspell_stem(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
byte[] word)
pHunspell - The Hunspell object returned by Hunspell_createslst - input: pointer to an array of strings pointer and the word to be stemmed
array of strings pointer (here *slst) may not be initialized
output: number of stems in string array, and stems in
a newly allocated array of strings (*slts will be NULL when number
of stems equals 0.)word - The word to find stems for.void Hunspell_free_list(com.sun.jna.Pointer pHunspell,
com.sun.jna.ptr.PointerByReference slst,
int n)
pHunspell - the Hunspell object returned by Hunspell_create(String, String)slst - the PointerByReference (char***) that is used for the suggestion listsn - Copyright © 2018. All rights reserved.