text: public virtual int Stem(char[] text, int length, bool stemDerivational){flags = 0;numSyllables = 0;for (int i = 0; i < length; i++){if (IsVowel(text[i])){numSyllables++;}}if (numSyllables > 2){length = RemoveParticle(text, length);}if (numSyllables > 2){length = RemovePossessivePronoun(text, length);}if (stemDerivational){length = StemDerivational(text, length);}return length;}