TraceLab Component Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
CzechStemmer.cs
Go to the documentation of this file.
1 /*
2  * Port of Snowball stemmers on C#
3  * Original stemmers can be found on http://snowball.tartarus.org
4  * Licence still BSD: http://snowball.tartarus.org/license.php
5  *
6  * Most of stemmers are ported from Java by Iveonik Systems ltd. (www.iveonik.com)
7  */
8 using System;
9 using System.Collections.Generic;
10 using System.Text;
11 using System.Globalization;
12 
13 namespace TraceLab.Components.DevelopmentKit.Preprocessors.Stemmers.Snowball.Languages
14 {
19  {
25  public string Stem(string input)
26  {
27  setCurrent(input.ToLowerInvariant());
28  // stemming...
29  //removes case endings from nouns and adjectives
30  removeCase();
31  //removes possesive endings from names -ov- and -in-
32  removePossessives();
33  //removes comparative endings
34  removeComparative();
35  //removes diminutive endings
36  removeDiminutive();
37  //removes augmentatives endings
38  removeAugmentative();
39  //removes derivational sufixes from nouns
40  removeDerivational();
41  //result = sb.toString();
42  return getCurrent(); //sb.ToString();
43  }
44 
45  }
46 
47 
48 }