Lucene.Net.Analysis.Ru.RussianStemmer.derivational C# (CSharp) Method

derivational() private method

private derivational ( StringBuilder stemmingZone ) : bool
stemmingZone StringBuilder
return bool
        private bool derivational(StringBuilder stemmingZone)
        {
            int endingLength = findEnding(stemmingZone, derivationalEndings);
            if (endingLength == 0)
                // no derivational ending found
                return false;
            else
            {
                // Ensure that the ending locates in R2
                if (R2 - RV <= stemmingZone.Length - endingLength)
                {
                    stemmingZone.Length = stemmingZone.Length - endingLength;
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }