Class Word
java.lang.Object
org.episteme.social.linguistics.Word
- All Implemented Interfaces:
Serializable
Represents a linguistic word, defined as a sequence of one or more morphemes
that form a minimal meaningful unit of language.
* @version 2.0
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStandard parts of speech (POS) categories. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLemma()inthashCode()voidsetDefinition(String definition) voidvoidtoString()
-
Constructor Details
-
Word
-
Word
Creates a complex word from a sequence of morphemes.- Parameters:
morphemes- list of morphemes in order- Throws:
IllegalArgumentException- if list is empty
-
-
Method Details
-
getLanguage
- Returns:
- the language of this word, derived from its constituent morphemes
-
getMorphemes
-
getPartOfSpeech
-
setPartOfSpeech
-
getLemma
-
setLemma
-
getDefinition
-
setDefinition
-
getString
- Returns:
- the full textual string of the word
-
equals
-
hashCode
-
toString
-