Class CatalanTagger

java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.ca.CatalanTagger
All Implemented Interfaces:
Tagger

public class CatalanTagger extends BaseTagger
Catalan Tagger
  • Field Details

    • INSTANCE_VAL

      public static final CatalanTagger INSTANCE_VAL
    • INSTANCE_CAT

      public static final CatalanTagger INSTANCE_CAT
    • ADJ_PART_FS

      private static final Pattern ADJ_PART_FS
    • VERB

      private static final Pattern VERB
    • PREFIXES_FOR_VERBS

      private static final Pattern PREFIXES_FOR_VERBS
    • ADJECTIU_COMPOST

      private static final Pattern ADJECTIU_COMPOST
    • ALLUPPERCASE_EXCEPTIONS

      private static final List<String> ALLUPPERCASE_EXCEPTIONS
    • variant

      private String variant
  • Constructor Details

    • CatalanTagger

      public CatalanTagger(Language language)
  • Method Details

    • overwriteWithManualTagger

      public boolean overwriteWithManualTagger()
      Description copied from class: BaseTagger
      If true, tags from the binary dictionary (*.dict) will be overwritten by manual tags from the plain text dictionary.
      Overrides:
      overwriteWithManualTagger in class BaseTagger
    • tag

      public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens)
      Description copied from interface: Tagger
      Returns a list of AnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).

      Note that this method takes exactly one sentence. Its implementation may implement special cases for the first word of a sentence, which is usually written with an uppercase letter.

      Specified by:
      tag in interface Tagger
      Overrides:
      tag in class BaseTagger
      Parameters:
      sentenceTokens - the text as returned by a WordTokenizer
    • additionalTags

      @Nullable protected List<AnalyzedToken> additionalTags(String word, morfologik.stemming.IStemmer stemmer)
    • addTokens

      private void addTokens(List<AnalyzedToken> taggedTokens, List<AnalyzedToken> l)