public class AffixMgr extends Object
| Constructor and Description |
|---|
AffixMgr(InputStream affStream,
String encoding,
WordMap ptr,
ProgressListener listener)
Initialize affix manager from .aff stream.
|
| Modifier and Type | Method and Description |
|---|---|
HEntry |
affix_check(String word)
Check word by all affixes.
|
HEntry |
compound_check(String word,
char compound_flag) |
List<GuessWord> |
expand_rootword(String ts,
String ap) |
String |
get_compound() |
String |
get_encoding() |
MapEntry[] |
get_maptable() |
boolean |
get_nosplitsugs() |
int |
get_nummap() |
int |
get_numrep() |
ReplEntry[] |
get_reptable() |
String |
get_try_string() |
HEntry |
lookup(String word) |
HEntry |
prefix_check(String word)
Check word against prefixes.
|
static String |
readEncoding(InputStream affStream) |
static String |
readEncoding(String affpath) |
HEntry |
suffix_check(String word,
int sfxopts,
PfxEntry ppfx)
Check word against suffixes.
|
public AffixMgr(InputStream affStream, String encoding, WordMap ptr, ProgressListener listener) throws IOException
affStream - .aff streamencoding - encodingptr - words listIOExceptionpublic HEntry affix_check(String word)
word - wordpublic HEntry prefix_check(String word)
word - wordpublic HEntry suffix_check(String word, int sfxopts, PfxEntry ppfx)
word - wordpublic int get_numrep()
public ReplEntry[] get_reptable()
public int get_nummap()
public MapEntry[] get_maptable()
public String get_encoding()
public String get_try_string()
public String get_compound()
public boolean get_nosplitsugs()
public static String readEncoding(String affpath) throws IOException
IOExceptionpublic static String readEncoding(InputStream affStream) throws IOException
IOExceptionCopyright © 2020. All rights reserved.