public static Lingon MakeConsonant(PoA poA, MoA moA, params ConsonantalFeature[] consonantalFeatures) { var lingon = new Lingon("C", poA, moA, Feature.Consonant); lingon.Features.AddRange(consonantalFeatures); return(lingon); }
public static Lingon MakeVowel(VowelHeight height, VowelBackness backness, params VowelFeature[] vowelFeatures) { var lingon = new Lingon("V", height, backness, Feature.Vowel); lingon.Features.AddRange(vowelFeatures); return(lingon); }
public bool Equals(Lingon other) { return(Features.TrueForAll(ft => other.Features.Contains(ft)) && other.Features.TrueForAll(ft => Features.Contains(ft))); }
public virtual bool IsMatch(Lingon lingon) { return(Features.TrueForAll(ft => lingon.Features.Contains(ft))); }