Lexicon Overview - mrmechko/STripsLexicon GitHub Wiki

Lexicon

The lexicon consists of a list of word entries:

case class STripsWord(
  word : String,
  pos : String,
  classes : List[SLexClass],
  morphs : List[SMorph]
) 

Morphology

SMorph(cat : String, to : String)

A list of alternate morphological forms the base word can take. Each morphology entry contains a word form and a categorization.

Example:

kick -> SMorph(3s,kicks)

Classes

case class SLexClass(
  words : List[String],
  pos : String,
  ontType : String,
  frames : List[SLexFrame]
)

Each SLexClass consists of a single ontType a list of frames which the particular sense of the words can be expressed in. The frame refers to a template not defined in the lexicon. Each SLexClass instance also contains a list of all the words which map to the particular ontType (verify)