All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expleague.commons.text.lemmer.ProAdjective Maven / Gradle / Ivy

Go to download

Utilities including math, charsequence based text processing, sequences etc.

There is a newer version: 1.4.9
Show newest version
package com.expleague.commons.text.lemmer;

import com.expleague.commons.seq.CharSeq;

public class ProAdjective extends Adjective {

    public ProAdjective(CharSeq lemma, double weight, boolean plural, GrammaticalGender grammaticalGender,
                        GrammaticalCase grammaticalCase, GrammaticalForm grammaticalForm,
                        ComparisonDegree comparisonDegree, boolean grammaticalAnimacy) {
        super(lemma, weight, PartOfSpeech.APRO, plural, grammaticalGender, grammaticalCase,
                grammaticalForm, comparisonDegree, grammaticalAnimacy);
    }

    @Override
    public String toString() {
        return lemma() + "(мест.прил., " + grammaticalGender().description() + ", " +
                grammaticalCase().description() + ", " + grammaticalForm().description() + ", " +
                comparisonDegree().description() + ", " + (isPlural() ? "мн." : "ед.")+ ")";
    }

    static class Factory extends Adjective.Factory {

        public Factory() {
            super(PartOfSpeech.APRO);
        }

        @Override
        public Factory accept(CharSeq property) {
            super.accept(property);
            return this;
        }

        @Override
        public LemmaInfo build() {
            return new ProAdjective(lemma, weight, plural, grammaticalGender,
                    grammaticalCase, grammaticalForm, comparisonDegree, grammaticalAnimacy);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy