Class FlatHarmonyDetector

java.lang.Object
ca.phon.query.detectors.FlatHarmonyDetector

public class FlatHarmonyDetector extends Object
Detects harmony on single IPATranscripts. This is useful for babbling data.
  • Constructor Details

    • FlatHarmonyDetector

      public FlatHarmonyDetector()
  • Method Details

    • detectConsonantHarmony

      public List<Tuple<Integer,Integer>> detectConsonantHarmony(IPATranscript ipa)
      Detect consonant harmony within the given ipa
      Returns:
      list of harmony locations
    • detectVowelHarmony

      public List<Tuple<Integer,Integer>> detectVowelHarmony(IPATranscript ipa)
      Detect vowel harmony within the given ipa
      Parameters:
      ipa -
      Returns:
      list of harmony locations
    • isConsonantHarmony

      public boolean isConsonantHarmony(IPAElement p1, IPAElement p2)
      A harmony exists between the two phones if both place and manner dimensions are the same.
      Parameters:
      p1 -
      p2 -
      Returns:
    • isVowelHarmony

      public boolean isVowelHarmony(IPAElement ele1, IPAElement ele2)
    • checkHarmony

      public boolean checkHarmony(IPAElement ele1, IPAElement ele2, PhoneDimension... dimensions)