Class HarmonyDetector


public class HarmonyDetector extends BasicHarmonyDetector

Harmony

Given two positions i, k within M, we determine if harmony exists for each dimension of profile(p) if any of the following cases are true:

  • Progressive Harmony
    dim(M1i) = x, dim(M1k) = y (Values from T)
    dim(M2i) = x, dim(M2k) = x (Values from A)
  • Regressive Harmony
    dim(M1i) = x, dim(M1k) = y (Values from T)
    dim(M2i) = y, dim(M2k) = y (Values from A)
  • Progressive Harmony
    dim(M1i) = x, dim(M1k) = ∅ (Values from T)
    dim(M2i) = x, dim(M2k) = x (Values from A)
  • Regressive Harmony
    dim(M1i) = ∅, dim(M1k) = x (Values from T)
    dim(M2i) = x, dim(M2k) = x (Values from A)

  • Constructor Details

    • HarmonyDetector

      public HarmonyDetector(boolean consonants)
    • HarmonyDetector

      public HarmonyDetector(boolean consonants, boolean includePlace, boolean includeManner, boolean includeVoicing, boolean includeHeight, boolean includeBackness, boolean includeTenseness, boolean includeRounding)
  • Method Details

    • isIncludePlace

      public boolean isIncludePlace()
    • setIncludePlace

      public void setIncludePlace(boolean includePlace)
    • isIncludeManner

      public boolean isIncludeManner()
    • setIncludeManner

      public void setIncludeManner(boolean includeManner)
    • isIncludeVoicing

      public boolean isIncludeVoicing()
    • setIncludeVoicing

      public void setIncludeVoicing(boolean includeVoicing)
    • isIncludeHeight

      public boolean isIncludeHeight()
    • setIncludeHeight

      public void setIncludeHeight(boolean includeHeight)
    • isIncludeBackness

      public boolean isIncludeBackness()
    • setIncludeBackness

      public void setIncludeBackness(boolean includeBackness)
    • isIncludeTenseness

      public boolean isIncludeTenseness()
    • setIncludeTenseness

      public void setIncludeTenseness(boolean includeTenseness)
    • isIncludeRounding

      public boolean isIncludeRounding()
    • setIncludeRounding

      public void setIncludeRounding(boolean includeRounding)
    • detect

      public Collection<DetectorResult> detect(PhoneMap pm)
      Description copied from class: Detector
      Perform detection.
      Overrides:
      detect in class Detector
    • isConsonantHarmony

      public boolean isConsonantHarmony(HarmonyDetectorResult potentialResult)
      Determine if there is consonant harmony. Will also update the shared and neutralized PhoneticProfile for the result.
      Parameters:
      potentialResult -
      Returns:
    • isVowelHarmony

      public boolean isVowelHarmony(HarmonyDetectorResult potentialResult)