Package org.languagetool.synthesis.ar
Class ArabicSynthesizer
java.lang.Object
org.languagetool.synthesis.BaseSynthesizer
org.languagetool.synthesis.ar.ArabicSynthesizer
- All Implemented Interfaces:
Synthesizer
Arabic word form synthesizer.
Based on part-of-speech lists in Public Domain. See readme.txt for details,
the POS tagset is described in arabic_tags_description.txt.
There are two special additions:
- +GF - tag that adds feminine gender to word
- +GM - a tag that adds masculine gender to word
- Since:
- 4.9
- Author:
- Taha Zerrouki
-
Field Summary
FieldsFields inherited from class org.languagetool.synthesis.BaseSynthesizer
language, possibleTags, SPELLNUMBER_FEMININE_TAG, SPELLNUMBER_ROMAN_TAG, SPELLNUMBER_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncorrectStem(String stem, String postag) correctTag(String postag) getPosTagCorrection(String posTag) static StringinflectAdjectiveTanwinNasb(String word, boolean feminin) inflectLemmaLike(String targetLemma, AnalyzedToken sourcetoken) static StringinflectMafoulMutlq(String word) setEnclitic(AnalyzedToken token, String suffix) setEncliticMultiple(AnalyzedToken token, String suffix) setJarProcletic(AnalyzedToken token, String prefix) setProcletic(AnalyzedToken token, String prefix) String[]synthesize(AnalyzedToken token, String posTag) Get a form of a given AnalyzedToken, where the form is defined by a part-of-speech tag.String[]synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) Methods inherited from class org.languagetool.synthesis.BaseSynthesizer
createStemmer, getDictionary, getRomanNumber, getSpelledNumber, getStemmer, getTargetPosTag, initPossibleTags, isException, lookup, removeExceptions, synthesizeForPosTags
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ArabicSynthesizer
Deprecated.useINSTANCE
-
-
Method Details
-
synthesize
Get a form of a given AnalyzedToken, where the form is defined by a part-of-speech tag.- Specified by:
synthesizein interfaceSynthesizer- Overrides:
synthesizein classBaseSynthesizer- Parameters:
token- AnalyzedToken to be inflected.posTag- A desired part-of-speech tag.- Returns:
- String value - inflected word.
-
synthesize
public String[] synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) throws IOException - Specified by:
synthesizein interfaceSynthesizer- Overrides:
synthesizein classBaseSynthesizer- Throws:
IOException
-
correctTag
-
getPosTagCorrection
- Specified by:
getPosTagCorrectionin interfaceSynthesizer- Overrides:
getPosTagCorrectionin classBaseSynthesizer
-
correctStem
-
setEnclitic
- Returns:
- set a new enclitic for the given word,
-
setEncliticMultiple
-
setJarProcletic
- Returns:
- set a new procletic for the given word,
-
setProcletic
- Returns:
- set a new procletic for the given word,
-
inflectLemmaLike
-
inflectMafoulMutlq
-
inflectAdjectiveTanwinNasb
-
INSTANCE