Example #1
0
        /// <summary>
        /// A word is called short if it ends in a short syllable, and if R1 is null.
        /// </summary>
        /// <returns></returns>
        internal bool IsShortWord()
        {
            //about to use R1
            CheckCache();

            //A word is called short if it ends in a short syllable, and if R1 is null.
            int lastVowelIndex = Stem.LastIndexOfAny(Vowels);

            return(lastVowelIndex > -1 &&
                   IsShortSyllable(lastVowelIndex) &&
                   String.IsNullOrEmpty(GetR1()));
        }