Record Class IndexOfPhoneticComplexity
java.lang.Object
java.lang.Record
ca.phon.ipa.ipc.IndexOfPhoneticComplexity
public record IndexOfPhoneticComplexity(int D, int M, int V, int S, int L, int P, int C, int T, String explanation)
extends Record
Index of phonetic complexity components.
Jakielski, Kathy J.. "The Index of Phonetic Complexity: At-a-Glance Scoring System, Terminology,
Instructions, invalid input: '&' Data Forms" (2022). Building Speech and Quantifying Complexity.
https://digitalcommons.augustana.edu/csdbuildingspeech/10
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the Index of Phonetic Complexity.IndexOfPhoneticComplexity(int D, int M, int V, int S, int L, int P, int C, int T, String explanation) Constructor for the Index of Phonetic Complexity with specified scores for each component. -
Method Summary
Modifier and TypeMethodDescriptionintC()Returns the value of theCrecord component.intD()Returns the value of theDrecord component.Difference between two IndexOfPhoneticComplexity objects.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplanationrecord component.static IndexOfPhoneticComplexityCalculate the Index of Phonetic Complexity from an IPATranscript.final inthashCode()Returns a hash code value for this object.intL()Returns the value of theLrecord component.intM()Returns the value of theMrecord component.intP()Returns the value of thePrecord component.intS()Returns the value of theSrecord component.intT()Returns the value of theTrecord component.final StringtoString()Returns a string representation of this record class.intCalculate the total score for the index of phonetic complexity.intV()Returns the value of theVrecord component.
-
Constructor Details
-
IndexOfPhoneticComplexity
public IndexOfPhoneticComplexity()Default constructor for the Index of Phonetic Complexity. Zero scores for all components. -
IndexOfPhoneticComplexity
public IndexOfPhoneticComplexity(int D, int M, int V, int S, int L, int P, int C, int T, String explanation) Constructor for the Index of Phonetic Complexity with specified scores for each component.- Parameters:
D- Place score (dorsals)M- Manner score (fricatives, affricates, and liquids)V- Vowel score (rhotic vowels)S- Word shape score (ends with a consonant)L- Word length score (3 or more syllables)P- Place variegation score (singleton consonants that are place variegated)C- Contiguous clusters scoreT- Cluster type score (heterorganic clusters)
-
-
Method Details
-
FromTranscript
Calculate the Index of Phonetic Complexity from an IPATranscript.- Parameters:
ipa- the IPATranscript to calculate the index from- Returns:
- an IndexOfPhoneticComplexity object representing the calculated index
-
totalScore
public int totalScore()Calculate the total score for the index of phonetic complexity.- Returns:
- the total score
-
difference
Difference between two IndexOfPhoneticComplexity objects.- Parameters:
other- the other IndexOfPhoneticComplexity object- Returns:
- a new IndexOfPhoneticComplexity object representing the difference
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
D
public int D()Returns the value of theDrecord component.- Returns:
- the value of the
Drecord component
-
M
public int M()Returns the value of theMrecord component.- Returns:
- the value of the
Mrecord component
-
V
public int V()Returns the value of theVrecord component.- Returns:
- the value of the
Vrecord component
-
S
public int S()Returns the value of theSrecord component.- Returns:
- the value of the
Srecord component
-
L
public int L()Returns the value of theLrecord component.- Returns:
- the value of the
Lrecord component
-
P
public int P()Returns the value of thePrecord component.- Returns:
- the value of the
Precord component
-
C
public int C()Returns the value of theCrecord component.- Returns:
- the value of the
Crecord component
-
T
public int T()Returns the value of theTrecord component.- Returns:
- the value of the
Trecord component
-
explanation
Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-