Class Sentence
java.lang.Object
org.episteme.social.linguistics.Sentence
- All Implemented Interfaces:
Serializable
Represents a sentence, a sequence of phrases or words that expresses
a complete thought or proposition. It contains grammatical metadata
about its purpose and structure.
* @version 2.0
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCommunicative intent (illocutionary force) of the sentence.static enumComplexity categories for sentence structure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintEstimates word count from raw text or constituent phrases.voidsetPurpose(Sentence.Purpose purpose) voidsetStructure(Sentence.Structure structure) voidSets the raw text of the sentence and detects its purpose.toString()
-
Constructor Details
-
Sentence
public Sentence()Creates an empty sentence. -
Sentence
-
Sentence
Creates a sentence from raw textual input and attempts to detect its purpose.- Parameters:
text- raw sentence text
-
-
Method Details
-
getPhrases
-
addPhrase
-
getStructure
-
setStructure
-
getPurpose
-
setPurpose
-
setText
Sets the raw text of the sentence and detects its purpose.- Parameters:
text- the raw text
-
getWordCount
public int getWordCount()Estimates word count from raw text or constituent phrases.- Returns:
- count of words
-
toString
-