Class CatalanSynthesizer

java.lang.Object
org.languagetool.synthesis.BaseSynthesizer
org.languagetool.synthesis.ca.CatalanSynthesizer
All Implemented Interfaces:
org.languagetool.synthesis.Synthesizer

public class CatalanSynthesizer extends org.languagetool.synthesis.BaseSynthesizer
Catalan word form synthesizer. There are special additions: "DT" tag adds "el, la, l', els, les" according to the gender and the number of the word and the Catalan rules for apostrophation (l'). "DTa" adds "al, a la, a l', als, a les" "DTde" adds "del, de la, de l', dels, de les" "DTper" adds "pel, per la, per l', pels, per les" "DTca" adds "cal, ca la, ca l', cals, ca les"
Author:
Jaume OrtolĂ  i Font
  • Field Summary

    Fields inherited from class org.languagetool.synthesis.BaseSynthesizer

    possibleTags, SPELLNUMBER_TAG
  • Constructor Summary

    Constructors
    Constructor
    Description
    CatalanSynthesizer(org.languagetool.Language lang)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    synthesize(org.languagetool.AnalyzedToken token, String posTag)
     
    synthesize(org.languagetool.AnalyzedToken token, String posTag, boolean posTagRegExp)
     

    Methods inherited from class org.languagetool.synthesis.BaseSynthesizer

    createStemmer, getDictionary, getPosTagCorrection, getSpelledNumber, getStemmer, initPossibleTags, lookup

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CatalanSynthesizer

      public CatalanSynthesizer(org.languagetool.Language lang)
  • Method Details

    • synthesize

      public String[] synthesize(org.languagetool.AnalyzedToken token, String posTag) throws IOException
      Specified by:
      synthesize in interface org.languagetool.synthesis.Synthesizer
      Overrides:
      synthesize in class org.languagetool.synthesis.BaseSynthesizer
      Throws:
      IOException
    • synthesize

      public String[] synthesize(org.languagetool.AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException
      Specified by:
      synthesize in interface org.languagetool.synthesis.Synthesizer
      Overrides:
      synthesize in class org.languagetool.synthesis.BaseSynthesizer
      Throws:
      IOException