Record Class LinguisticSystem.TextMetricsBinary
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.LinguisticSystem.TextMetricsBinary
- Enclosing class:
LinguisticSystem
public static record LinguisticSystem.TextMetricsBinary(double fleschScore, int wordCount, int averageSyllablesPerWord)
extends Record
Analyzes the readability and complexity of a text.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionTextMetricsBinary(double fleschScore, int wordCount, int averageSyllablesPerWord) Creates an instance of aTextMetricsBinaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaverageSyllablesPerWordrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefleschScorerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thewordCountrecord component.
-
Constructor Details
-
TextMetricsBinary
public TextMetricsBinary(double fleschScore, int wordCount, int averageSyllablesPerWord) Creates an instance of aTextMetricsBinaryrecord class.- Parameters:
fleschScore- the value for thefleschScorerecord componentwordCount- the value for thewordCountrecord componentaverageSyllablesPerWord- the value for theaverageSyllablesPerWordrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
fleschScore
public double fleschScore()Returns the value of thefleschScorerecord component.- Returns:
- the value of the
fleschScorerecord component
-
wordCount
public int wordCount()Returns the value of thewordCountrecord component.- Returns:
- the value of the
wordCountrecord component
-
averageSyllablesPerWord
public int averageSyllablesPerWord()Returns the value of theaverageSyllablesPerWordrecord component.- Returns:
- the value of the
averageSyllablesPerWordrecord component
-