story.scheherazade.prologuer
Class Comlex

java.lang.Object
  extended by story.scheherazade.prologuer.Comlex

public class Comlex
extends java.lang.Object

API for accessing COMLEX, the lexical resource from the 80s, for which I've written a parser.


Constructor Summary
Comlex(java.lang.String comlexFileName)
           
 
Method Summary
 java.lang.String conjugate(java.lang.String verb, COMLEXVerbTense tense)
          Get the conjugated form of a verb noun as found in COMLEX.
 java.lang.String getPluralForm(java.lang.String word)
          Get the plural form of a noun as found in COMLEX.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comlex

public Comlex(java.lang.String comlexFileName)
       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getPluralForm

public java.lang.String getPluralForm(java.lang.String word)
Get the plural form of a noun as found in COMLEX.


conjugate

public java.lang.String conjugate(java.lang.String verb,
                                  COMLEXVerbTense tense)
                           throws java.lang.Exception
Get the conjugated form of a verb noun as found in COMLEX. Returns null if no such conjugation is given in COMLEX (possibly, not not necessarily, because the word is regular).

Throws:
java.lang.Exception


Copyright © 2011 David K. Elson. All Rights Reserved.