Package ca.phon.query.detectors
Class HarmonyDetector
java.lang.Object
ca.phon.query.detectors.Detector
ca.phon.query.detectors.BasicHarmonyDetector
ca.phon.query.detectors.HarmonyDetector
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)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHarmonyDetector
(boolean consonants) HarmonyDetector
(boolean consonants, boolean includePlace, boolean includeManner, boolean includeVoicing, boolean includeHeight, boolean includeBackness, boolean includeTenseness, boolean includeRounding) -
Method Summary
Modifier and TypeMethodDescriptionPerform detection.boolean
isConsonantHarmony
(HarmonyDetectorResult potentialResult) Determine if there is consonant harmony.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isVowelHarmony
(HarmonyDetectorResult potentialResult) void
setIncludeBackness
(boolean includeBackness) void
setIncludeHeight
(boolean includeHeight) void
setIncludeManner
(boolean includeManner) void
setIncludePlace
(boolean includePlace) void
setIncludeRounding
(boolean includeRounding) void
setIncludeTenseness
(boolean includeTenseness) void
setIncludeVoicing
(boolean includeVoicing) Methods inherited from class ca.phon.query.detectors.BasicHarmonyDetector
getNeutralized, isConsonants, performDetection, setConsonants
-
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
Description copied from class:Detector
Perform detection. -
isConsonantHarmony
Determine if there is consonant harmony. Will also update the shared and neutralizedPhoneticProfile
for the result.- Parameters:
potentialResult
-- Returns:
-
isVowelHarmony
-