Class Morpheme

java.lang.Object
org.episteme.social.linguistics.Morpheme
All Implemented Interfaces:
Serializable

public class Morpheme extends Object implements Serializable
Represents a morpheme—the smallest irreducible unit of meaning or grammatical function within a language. Morphemes are the building blocks of words. * @version 2.0
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Morpheme

      public Morpheme(Language language, String text)
      Constructs a morpheme from a raw string.
      Parameters:
      language - the language of the morpheme
      text - the orthographic representation
    • Morpheme

      public Morpheme(Language language, List<Grapheme> graphemes, List<Phoneme> phonemes)
      Constructs a morpheme from explicit phonetic and orthographic units.
      Parameters:
      language - the language
      graphemes - list of constituent graphemes
      phonemes - list of constituent phonemes
  • Method Details

    • getLanguage

      public Language getLanguage()
    • getGraphemes

      public List<Grapheme> getGraphemes()
      Returns:
      unmodifiable list of internal graphemes
    • getPhonemes

      public List<Phoneme> getPhonemes()
      Returns:
      unmodifiable list of internal phonemes
    • getType

      public Morpheme.Type getType()
    • setType

      public void setType(Morpheme.Type type)
    • getMeaning

      public String getMeaning()
      Returns:
      the semantic meaning or definition of the morpheme
    • setMeaning

      public void setMeaning(String meaning)
    • getString

      public String getString()
      Returns:
      the concatenated string of the morphemes's graphemes
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object