public void RemoveOtherSPluralSuffix_EndingInSAndContainingAVowelRightBeforeAndEarlierInWord_DeletesTheS() { const string word = "kiwis"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1ARemoveOtherSPluralSuffixes(word); // Assert Assert.AreEqual("kiwi", actual); }
public void RemoveOtherSPluralSuffix_EndingInUs_LeavesWordAlone() { const string word = "consensus"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1ARemoveOtherSPluralSuffixes(word); // Assert Assert.AreEqual("consensus", actual); }
public void RemoveOtherSPluralSuffix_WithLongWordEndingInIes_ReplaceWithI() { const string word = "cries"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1ARemoveOtherSPluralSuffixes(word); // Assert Assert.AreEqual("cri", actual); }
public void RemoveOtherSPluralSuffix_WithShortWordEndingInIed_ReplaceWithIe() { const string word = "tied"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1ARemoveOtherSPluralSuffixes(word); // Assert Assert.AreEqual("tie", actual); }
public void RemoveOtherSPluralSuffix_WithWordEndingInSses_ReplaceWithSs() { const string word = "assesses"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1ARemoveOtherSPluralSuffixes(word); // Assert Assert.AreEqual("assess", actual); }
public void RemoveOtherSPluralSuffix_EndingInSAndContainingAVowelRightBefore_LeavesTheS() { const string word = "gas"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1ARemoveOtherSPluralSuffixes(word); // Assert Assert.AreEqual("gas", actual); }
public void RemoveOtherSPluralSuffix_EndingInSAndContainingAVowelEarlierInWord_DeletesTheS() { const string word = "gaps"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.Step1ARemoveOtherSPluralSuffixes(word); // Assert Assert.AreEqual("gap", actual); }