package morphology.parser; /** * Encapsulation of noun stem features. * * Project: NGSLT --> NLP --> Words --> Assignment #1 * @author Normunds Grūzītis, Gunta Nešpore, Baiba Saulīte * @version February-March 2006 */ public class NounStemFeature extends StemFeature { private String pos; private String decl; /** * Constructor. * @param pos part-of-speech. * @param decl declension. */ public NounStemFeature(String pos, String decl) { this.pos = pos; this.decl = decl; } /** * Gets part-of-speech of the stem. * @return POS code (e.g., 'N'). */ public String getPOS() { return pos; } /** * Gets inflectional paradigm of the stem. * @return code of the paradigm (e.g., 'D1', 'D2'). */ public String getParadigm() { return decl; } }