Example #1
0
 private void copy_from(FrenchStemmer other)
 {
     I_p2 = other.I_p2;
     I_p1 = other.I_p1;
     I_pV = other.I_pV;
     base.copy_from(other);
 }
 private string StemTerm(string term)
 {
     string massagedTerm = term.Trim().ToLower();
     if (String.IsNullOrEmpty(massagedTerm)) return null;
     switch (_language) {
         case ConfigHandler.Language.English:
             EnglishWord englishWord = new EnglishWord(massagedTerm);
             return englishWord.Stem;
         case ConfigHandler.Language.German:
             GermanStemmer germanStemmer = new GermanStemmer();
             return germanStemmer.Stem(massagedTerm);
         case ConfigHandler.Language.Russian:
             RussianStemmer russianStemmer = new RussianStemmer();
             return russianStemmer.Stem(massagedTerm);
         case ConfigHandler.Language.French:
             FrenchStemmer frenchStemmer = new FrenchStemmer();
             return frenchStemmer.Stem(massagedTerm);
         default:
             return massagedTerm;
     }
 }