Пример #1
0
        public override float CalculateDistance(Phoneme other)
        {
            Consonant consonant = other as Consonant;

            if (consonant != null)
            {
                return(Math.Abs(PlaceValue - consonant.PlaceValue) + Math.Abs(MannerValue - consonant.MannerValue));
            }

            return(float.MaxValue);
        }
Пример #2
0
 public ConsonantCluster(Consonant first, Consonant second)
     : base(first)
 {
     IsGeminate = (first == second);
     Second     = second;
 }
Пример #3
0
 public Consonant(Consonant consonant)
     : this(consonant.Voicing, consonant.Place, consonant.Manner, consonant.Grapheme, consonant.IPA, consonant.Occurence)
 {
 }