Package ca.phon.syllable
Class SyllabificationInfo
java.lang.Object
ca.phon.syllable.SyllabificationInfo
Adds syllabification information to Phones.
Syllabification information includes:
- # of syllables in phrase
- syllable index of phone
- syllable stress
- constituent type
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSyllabificationInfo
(IPAElement phone) SyllabificationInfo
(IPAElement phone, SyllableConstituentType scType) -
Method Summary
Modifier and TypeMethodDescriptionReturn the syllable constituent type.getPhone()
Get parentIPAElement
Stress of the parent syllable.boolean
Is this phone part of a diphthong?void
Set constituent typevoid
setDiphthongMember
(boolean isDiphthongMember) Set thisIPAElement
as part of a diphthong member.void
setStress
(SyllableStress stress) Set the stress of the parent syllablevoid
setToneNumber
(String toneNumber) static void
Assign stress and tonal information to individualIPAElement
s.
-
Field Details
-
PHONE_SCTYPE
Property name for constituent type changes- See Also:
-
PHONE_STRESS
Property name for stress changes- See Also:
-
PHONE_DIPHTHONG_MEMBER
Property name for dipthong member changes- See Also:
-
-
Constructor Details
-
SyllabificationInfo
-
SyllabificationInfo
-
-
Method Details
-
setupSyllabificationInfo
Assign stress and tonal information to individualIPAElement
s.- Parameters:
phones
-
-
getPhone
Get parentIPAElement
- Returns:
- parent phone, may be
null
if theinvalid @link
WeakRefernce
-
getConstituentType
Return the syllable constituent type.- Returns:
- the syllable constituent type for the phone
-
setConstituentType
Set constituent type- Parameters:
scType
-
-
getToneNumber
-
setToneNumber
-
getStress
Stress of the parent syllable.- Returns:
- the stress type of the parent syllable
-
setStress
Set the stress of the parent syllable- Parameters:
stress
-
-
isDiphthongMember
public boolean isDiphthongMember()Is this phone part of a diphthong?- Returns:
true
if the constituent type of theIPAElement
isSyllableConstituentType.NUCLEUS
and theIPAElement
is part of a diphthong,false
otherwise
-
setDiphthongMember
public void setDiphthongMember(boolean isDiphthongMember) Set thisIPAElement
as part of a diphthong member. Only valid ifgetConstituentType()
isSyllableConstituentType.NUCLEUS
.- Parameters:
isDiphthongMember
-
-