public virtual void TestExclude() { CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("feirmeoireacht"), false); Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT, IrishAnalyzer.DefaultStopSet, exclusionSet); CheckOneTerm(a, "feirmeoireacht", "feirmeoireacht"); CheckOneTerm(a, "siopadóireacht", "siopadóir"); }
public virtual void TestBasics() { Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT); // stemming CheckOneTerm(a, "siopadóireacht", "siopadóir"); CheckOneTerm(a, "síceapatacha", "síceapaite"); // stopword AssertAnalyzesTo(a, "le", new string[] { }); }
public virtual void TestHyphens() { Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT); AssertAnalyzesTo(a, "n-athair", new string[] { "athair" }, new int[] { 2 }); }
public virtual void TestContractions() { Analyzer a = new IrishAnalyzer(TEST_VERSION_CURRENT); AssertAnalyzesTo(a, "b'fhearr m'athair", new string[] { "fearr", "athair" }); }