org.jscience.linguistics
Class Morpheme

java.lang.Object
  extended by org.jscience.linguistics.Morpheme

public class Morpheme
extends java.lang.Object

The Morpheme class corresponds to a sub unit of a word (prefix, suffix, etc.).


Constructor Summary
Morpheme(Grapheme[] graphemes)
          Creates a new Lexeme object.
Morpheme(Language language, java.lang.String string)
          Creates a new Lexeme object.
Morpheme(Phoneme[] phonemes)
          Creates a new Morpheme object.
 
Method Summary
 Grapheme[] getGraphemes()
          DOCUMENT ME!
 Language getLanguage()
          DOCUMENT ME!
 Phoneme[] getPhonemes()
          DOCUMENT ME!
 java.lang.String getString()
          DOCUMENT ME!
 boolean isGraphemeBased()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Morpheme

public Morpheme(Language language,
                java.lang.String string)
Creates a new Lexeme object.

Parameters:
language - DOCUMENT ME!
string - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

Morpheme

public Morpheme(Grapheme[] graphemes)
Creates a new Lexeme object.

Parameters:
graphemes - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

Morpheme

public Morpheme(Phoneme[] phonemes)
Creates a new Morpheme object.

Parameters:
phonemes - DOCUMENT ME!
Method Detail

getLanguage

public Language getLanguage()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getGraphemes

public Grapheme[] getGraphemes()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPhonemes

public Phoneme[] getPhonemes()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isGraphemeBased

public boolean isGraphemeBased()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getString

public java.lang.String getString()
DOCUMENT ME!

Returns:
DOCUMENT ME!