Class BasicHarmonyDetector

java.lang.Object
ca.phon.query.detectors.Detector
ca.phon.query.detectors.BasicHarmonyDetector
Direct Known Subclasses:
AdvancedHarmonyDetector, HarmonyDetector

public class BasicHarmonyDetector extends Detector
A class that can detect consonant/vowel harmony in a word based on an actual form. Multiple interpertations can exist.
  • Constructor Details

    • BasicHarmonyDetector

      public BasicHarmonyDetector(boolean consonants)
      Default constructor.
  • Method Details

    • isConsonants

      public boolean isConsonants()
    • setConsonants

      public void setConsonants(boolean consonants)
    • performDetection

      public void performDetection()
      Specified by:
      performDetection in class Detector
    • getNeutralized

      public FeatureSet getNeutralized(FeatureSet target, FeatureSet actual, FeatureSet shared)
      Gets all of the neutralized features in the target form based on a set of shared features.
      Parameters:
      target - the feature set for the target form
      shared - the shared features
      Returns:
      a collection containing the neutralized features