text: public virtual int Stem(char[] s, int len){if (len < 4) {return len;}if (len > 5 && StemmerUtil.EndsWith(s, len, "ища")){return len - 3;}len = RemoveArticle(s, len);len = RemovePlural(s, len);if (len > 3){if (StemmerUtil.EndsWith(s, len, "я")){len--;}if (StemmerUtil.EndsWith(s, len, "а") || StemmerUtil.EndsWith(s, len, "о") || StemmerUtil.EndsWith(s, len, "е")){len--;}}if (len > 4 && StemmerUtil.EndsWith(s, len, "ен")){s[len - 2] = 'н'; len--;}if (len > 5 && s[len - 2] == 'ъ'){s[len - 2] = s[len - 1]; len--;}return len;}