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 TypeMethodDescriptionint
C()
Returns the value of theC
record component.int
D()
Returns the value of theD
record component.Difference between two IndexOfPhoneticComplexity objects.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexplanation
record component.static IndexOfPhoneticComplexity
Calculate the Index of Phonetic Complexity from an IPATranscript.final int
hashCode()
Returns a hash code value for this object.int
L()
Returns the value of theL
record component.int
M()
Returns the value of theM
record component.int
P()
Returns the value of theP
record component.int
S()
Returns the value of theS
record component.int
T()
Returns the value of theT
record component.final String
toString()
Returns a string representation of this record class.int
Calculate the total score for the index of phonetic complexity.int
V()
Returns the value of theV
record 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 thecompare
method from their corresponding wrapper classes. -
D
public int D()Returns the value of theD
record component.- Returns:
- the value of the
D
record component
-
M
public int M()Returns the value of theM
record component.- Returns:
- the value of the
M
record component
-
V
public int V()Returns the value of theV
record component.- Returns:
- the value of the
V
record component
-
S
public int S()Returns the value of theS
record component.- Returns:
- the value of the
S
record component
-
L
public int L()Returns the value of theL
record component.- Returns:
- the value of the
L
record component
-
P
public int P()Returns the value of theP
record component.- Returns:
- the value of the
P
record component
-
C
public int C()Returns the value of theC
record component.- Returns:
- the value of the
C
record component
-
T
public int T()Returns the value of theT
record component.- Returns:
- the value of the
T
record component
-
explanation
Returns the value of theexplanation
record component.- Returns:
- the value of the
explanation
record component
-