org.annotation.util
Class Morpheus
java.lang.Object
org.annotation.util.Morpheus
- public class Morpheus
- extends java.lang.Object
Field Summary |
static int |
ADJECTIVE
|
protected static java.lang.String[][] |
adjSuffixes
Array of two-element String arrays, where the first element of each
two-element array is a potential adjective suffix and the second element
is a replacement suffix to canonicalize the word form. |
static int |
ADVERB
|
static int |
NOUN
|
protected static java.lang.String[][] |
nounSuffixes
Array of two-element String arrays, where the first element of each
two-element array is a potential noun suffix and the second element is a
replacement suffix to canonicalize the word form. |
static int |
VERB
|
protected static java.lang.String[][] |
verbSuffixes
Array of two-element String arrays, where the first element of each
two-element array is a potential verb suffix and the second element is a
replacement suffix to canonicalize the word form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nounSuffixes
protected static java.lang.String[][] nounSuffixes
- Array of two-element String arrays, where the first element of each
two-element array is a potential noun suffix and the second element is a
replacement suffix to canonicalize the word form.
These arrays are accessed by getSuffix.
verbSuffixes
protected static java.lang.String[][] verbSuffixes
- Array of two-element String arrays, where the first element of each
two-element array is a potential verb suffix and the second element is a
replacement suffix to canonicalize the word form.
These arrays are accessed by getSuffix.
adjSuffixes
protected static java.lang.String[][] adjSuffixes
- Array of two-element String arrays, where the first element of each
two-element array is a potential adjective suffix and the second element
is a replacement suffix to canonicalize the word form.
These arrays are accessed by getSuffix.
NOUN
public static int NOUN
VERB
public static int VERB
ADJECTIVE
public static int ADJECTIVE
ADVERB
public static int ADVERB
getInstance
public static Morpheus getInstance()
getMorpheus
public static Morpheus getMorpheus()
getRoots
public java.lang.String[] getRoots(java.lang.String word)
getRoots
public java.lang.String[] getRoots(java.lang.String word,
int pos)
getInflections
public java.lang.String[] getInflections(java.lang.String root)
getExceptionInflections
public java.lang.String[] getExceptionInflections(java.lang.String root)
main
public static void main(java.lang.String[] args)
Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.