Class SyllabificationInfo

java.lang.Object
ca.phon.syllable.SyllabificationInfo

@Extension(IPAElement.class) public class SyllabificationInfo extends Object
Adds syllabification information to Phones. Syllabification information includes:
  • # of syllables in phrase
  • syllable index of phone
  • syllable stress
  • constituent type
  • Field Details

  • Constructor Details

  • Method Details

    • setupSyllabificationInfo

      public static void setupSyllabificationInfo(IPATranscript ipa)
      Assign stress and tonal information to individual IPAElements.
      Parameters:
      phones -
    • getPhone

      public IPAElement getPhone()
      Get parent IPAElement
      Returns:
      parent phone, may be null if the
      invalid @link
      WeakRefernce
      to the parent is no longer valid.
    • getConstituentType

      public SyllableConstituentType getConstituentType()
      Return the syllable constituent type.
      Returns:
      the syllable constituent type for the phone
    • setConstituentType

      public void setConstituentType(SyllableConstituentType scType)
      Set constituent type
      Parameters:
      scType -
    • getToneNumber

      public String getToneNumber()
    • setToneNumber

      public void setToneNumber(String toneNumber)
    • getStress

      public SyllableStress getStress()
      Stress of the parent syllable.
      Returns:
      the stress type of the parent syllable
    • setStress

      public void setStress(SyllableStress stress)
      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 the IPAElement is SyllableConstituentType.NUCLEUS and the IPAElement is part of a diphthong, false otherwise
    • setDiphthongMember

      public void setDiphthongMember(boolean isDiphthongMember)
      Set this IPAElement as part of a diphthong member. Only valid if getConstituentType() is SyllableConstituentType.NUCLEUS.
      Parameters:
      isDiphthongMember -