|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.jtm.PluralDetector
public class PluralDetector
Lookup a noun's singular form against a dictionary.
| Constructor Summary | |
|---|---|
PluralDetector()
|
|
PluralDetector(java.io.File dicFile)
Creates a new instance of PluralDetector. |
|
PluralDetector(java.net.URL dicUrl)
|
|
| Method Summary | |
|---|---|
void |
loadDictionary(java.io.File dicFile,
boolean keyFirst)
|
void |
loadDictionary(java.net.URL dicUrl,
boolean keyFirst)
|
static void |
main(java.lang.String[] args)
For test. |
void |
setCheckAbb(boolean c)
|
void |
singlize(java.nio.CharBuffer plural)
|
java.lang.String |
singlize(java.lang.String plural)
Return singular form of a plural. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluralDetector(java.io.File dicFile)
throws java.io.IOException
dicFile - plural dictionary file.
java.io.IOException
public PluralDetector(java.net.URL dicUrl)
throws java.io.IOException
java.io.IOExceptionpublic PluralDetector()
| Method Detail |
|---|
public void setCheckAbb(boolean c)
public void loadDictionary(java.io.File dicFile,
boolean keyFirst)
throws java.io.IOException
java.io.IOException
public void loadDictionary(java.net.URL dicUrl,
boolean keyFirst)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String singlize(java.lang.String plural)
plural - the plural word.
public void singlize(java.nio.CharBuffer plural)
public static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||