Class Phrase
java.lang.Object
org.episteme.social.linguistics.Phrase
- All Implemented Interfaces:
Serializable
Represents a phrase—a group of words that function together as a single
syntactic unit within a sentence but do not necessarily contain a subject
and a predicate (clause).
* @version 2.0
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFunctional categories of phrases based on their head word. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Phrase
public Phrase()Initializes an empty phrase. -
Phrase
-
Phrase
-
-
Method Details
-
getWords
-
addWord
Appends a word to the end of the phrase.- Parameters:
word- word to add
-
getType
-
setType
-
getWordCount
public int getWordCount()- Returns:
- total count of words in the phrase
-
getHead
- Returns:
- the primary 'head' word of the phrase (simplified as the last word)
-
toString
-