public void ReplaceYSuffix_NotPreceededyConsonant_DoesNotReplaceSuffix() { const string word = "say"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1CReplaceSuffixYWithIIfPreceededWithConsonant(word); // Assert Assert.AreEqual("say", actual); }
public void ReplaceYSuffix_PreceededByConsonant_ReplacesSuffixWithI() { const string word = "cry"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1CReplaceSuffixYWithIIfPreceededWithConsonant(word); // Assert Assert.AreEqual("cri", actual); }
public void ReplaceYSuffix_PreceededByConsonantAsFirstLetterOfWord_DoesNotReplaceSuffix() { const string word = "by"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1CReplaceSuffixYWithIIfPreceededWithConsonant(word); // Assert Assert.AreEqual("by", actual); }