Package ca.phon.query.detectors
Class BasicHarmonyDetector
java.lang.Object
ca.phon.query.detectors.Detector
ca.phon.query.detectors.BasicHarmonyDetector
- Direct Known Subclasses:
AdvancedHarmonyDetector
,HarmonyDetector
A class that can detect consonant/vowel harmony in a word based on
an actual form. Multiple interpertations can exist.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNeutralized
(FeatureSet target, FeatureSet actual, FeatureSet shared) Gets all of the neutralized features in the target form based on a set of shared features.boolean
void
void
setConsonants
(boolean consonants)
-
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 classDetector
-
getNeutralized
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 formshared
- the shared features- Returns:
- a collection containing the neutralized features
-