Example #1
0
        public bool HasCoda(Phoneme currentPhoneme)
        {
            if (!Phonemes.Any())
            {
                return(false);
            }

            var last = Phonemes.Last();

            return(HasNucleus() && !last.IsVowel() && last.Text != "s");

            /*if (currentPhoneme.ArticulationPlace == ArticulationPlaces.Alveolar && currentPhoneme.ArticulationManner == ArticulationManners.Fricative) {
             *  return false;
             * }
             *
             * var nucleus = GetNucleus();
             *
             * if (nucleus == SyllableNucleusTypes.Full) {
             *  return true;
             * }
             *
             * if (nucleus == SyllableNucleusTypes.Partial) {
             *  if (currentPhoneme.ArticulationManner == ArticulationManners.Liquid) {
             *      //return true;
             *  }
             * }
             *
             * return false;*/
        }
Example #2
0
 public bool HasVowel()
 {
     return(Phonemes.Any(phoneme => phoneme.Letters.HasVowel()));
 }
Example #3
0
 public bool HasPhonemeConsonant()
 {
     return(Phonemes.Any(phoneme => phoneme.ArticulationManner != ArticulationManners.Vowel));
 }
Example #4
0
 public bool HasPhonemeArticulationManner(ArticulationManners manner)
 {
     return(Phonemes.Any(phoneme => phoneme.ArticulationManner == manner));
 }
Example #5
0
 public bool HasPhoneme(Func <Phoneme, bool> predicate)
 {
     return(Phonemes.Any(predicate));
 }