public virtual void TestExclude()
 {
     CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("llengües"), false);
     Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT, CatalanAnalyzer.DefaultStopSet, exclusionSet);
     CheckOneTerm(a, "llengües", "llengües");
     CheckOneTerm(a, "llengua", "llengu");
 }
        public virtual void TestExclude()
        {
            CharArraySet exclusionSet = new CharArraySet(TEST_VERSION_CURRENT, AsSet("llengües"), false);
            Analyzer     a            = new CatalanAnalyzer(TEST_VERSION_CURRENT, CatalanAnalyzer.DefaultStopSet, exclusionSet);

            CheckOneTerm(a, "llengües", "llengües");
            CheckOneTerm(a, "llengua", "llengu");
        }
 public virtual void TestBasics()
 {
     Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);
     // stemming
     CheckOneTerm(a, "llengües", "llengu");
     CheckOneTerm(a, "llengua", "llengu");
     // stopword
     AssertAnalyzesTo(a, "un", new string[] { });
 }
        public virtual void TestBasics()
        {
            Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);

            // stemming
            CheckOneTerm(a, "llengües", "llengu");
            CheckOneTerm(a, "llengua", "llengu");
            // stopword
            AssertAnalyzesTo(a, "un", new string[] { });
        }
        public virtual void TestContractions()
        {
            Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);

            AssertAnalyzesTo(a, "Diccionari de l'Institut d'Estudis Catalans", new string[] { "diccion", "inst", "estud", "catalan" });
        }
 public virtual void TestContractions()
 {
     Analyzer a = new CatalanAnalyzer(TEST_VERSION_CURRENT);
     AssertAnalyzesTo(a, "Diccionari de l'Institut d'Estudis Catalans", new string[] { "diccion", "inst", "estud", "catalan" });
 }