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 -
Method Summary
Modifier and TypeMethodDescriptionString[]synthesize(org.languagetool.AnalyzedToken token, String posTag) String[]synthesize(org.languagetool.AnalyzedToken token, String posTag, boolean posTagRegExp) Methods inherited from class org.languagetool.synthesis.BaseSynthesizer
createStemmer, getDictionary, getPosTagCorrection, getSpelledNumber, getStemmer, initPossibleTags, lookup
-
Constructor Details
-
CatalanSynthesizer
public CatalanSynthesizer(org.languagetool.Language lang)
-
-
Method Details
-
synthesize
- Specified by:
synthesizein interfaceorg.languagetool.synthesis.Synthesizer- Overrides:
synthesizein classorg.languagetool.synthesis.BaseSynthesizer- Throws:
IOException
-
synthesize
public String[] synthesize(org.languagetool.AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException - Specified by:
synthesizein interfaceorg.languagetool.synthesis.Synthesizer- Overrides:
synthesizein classorg.languagetool.synthesis.BaseSynthesizer- Throws:
IOException
-