public void MarkVowelsAsConsonants_WithDoubledY_MarksFirstButNotSecondYAsConsonant() { const string word = "sayyid"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.MarkYsAsConsonants(word); // Assert Assert.AreEqual("saYyid", actual); }
public void MarkVowelsAsConsonants_WithVowelOnlyFollowingY_DoesNotMarkYAsConsonant() { const string word = "flying"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.MarkYsAsConsonants(word); // Assert Assert.AreEqual("flying", actual); }
public void MarkVowelsAsConsonants_WithNoVowelsButY_DoesNotMarkAnyYAsConsonant() { const string word = "syzygy"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.MarkYsAsConsonants(word); // Assert Assert.AreEqual("syzygy", actual); }
public void MarkVowelsAsConsonants_WithInitialY_MarksYAsConsonant() { const string word = "youth"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.MarkYsAsConsonants(word); // Assert Assert.AreEqual("Youth", actual); }
public void MarkVowelsAsConsonants_WithYBetweenTwoVowels_MarksYAsConsonant() { const string word = "boyish"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.MarkYsAsConsonants(word); // Assert Assert.AreEqual("boYish", actual); }
public void MarkVowelsAsConsonants_WithYAfterConsonant_DoesNotMarkYAsConsonant() { const string word = "fly"; var stemmer = new EnglishPorter2Stemmer(); // Act var actual = stemmer.MarkYsAsConsonants(word); // Assert Assert.AreEqual("fly", actual); }