Class ArabicTagManager

java.lang.Object
org.languagetool.tagging.ar.ArabicTagManager

public class ArabicTagManager extends Object
Since:
5.0
Author:
Taha Zerrouki
  • Constructor Details

    • ArabicTagManager

      public ArabicTagManager()
  • Method Details

    • modifyPosTag

      public String modifyPosTag(String postag, List<String> tags)
    • addTag

      public String addTag(String postag, String flagString)
    • addTag

      public String addTag(String postag, String flagType, String flag)
    • isMajrour

      public boolean isMajrour(String postag)
      Returns:
      true if have flag majrour
    • setJar

      public String setJar(String postag, String jar)
      Returns:
      add jar flag to noun
    • setDefinite

      public String setDefinite(String postag, String flag)
      Returns:
      add definite flag to noun
    • unifyPronounTag

      public String unifyPronounTag(String postag)
    • setConjunction

      public String setConjunction(String postag, String flag)
      Returns:
      add conjuction flag to noun
    • setPronoun

      public String setPronoun(String postag, String flag)
      Returns:
      add conjunction flag to noun
    • isFutureTense

      public boolean isFutureTense(String postag)
      Returns:
      true if have flag future
    • isUnAttachedNoun

      public boolean isUnAttachedNoun(String postag)
      Returns:
      true if have flag is noun and has attached pronoun
    • isAttached

      public boolean isAttached(String postag)
      Returns:
      true if have flag is noun/verb and has attached pronoun
    • isStopWord

      public boolean isStopWord(String postag)
      Returns:
      test if word has stopword tagging
    • isNoun

      public boolean isNoun(String postag)
      Returns:
      true if have flag noun
    • isDual

      public boolean isDual(String postag)
      Returns:
      true if have flag dual
    • isVerb

      public boolean isVerb(String postag)
      Returns:
      true if have flag verb
    • isAdj

      public boolean isAdj(String postag)
      Returns:
      true if have flag Adj
    • isMasdar

      public boolean isMasdar(String postag)
      Returns:
      true if have flag Adj
    • isDefinite

      public boolean isDefinite(String postag)
      Returns:
      true if have flag is noun and definite
    • isFeminin

      public boolean isFeminin(String postag)
      Returns:
      true if have flag is feminine or masculine
    • isBreak

      public boolean isBreak(String postag)
      Returns:
      true if a word has procletics like conj and jar
    • hasJar

      public boolean hasJar(String postag)
      Returns:
      true if the postag has a Jar
    • hasPronoun

      public boolean hasPronoun(String postag)
      Returns:
      true if the postag has a Jar
    • hasConjunction

      public boolean hasConjunction(String postag)
      Returns:
      true if the postag has a conjuction
    • getDefinitePrefix

      public String getDefinitePrefix(String postag)
      Returns:
      if have a flag which is a noun and definite, return the prefix letter for this case
    • getJarPrefix

      public String getJarPrefix(String postag)
      Returns:
      the Jar prefix letter
    • getConjunctionPrefix

      public String getConjunctionPrefix(String postag)
      Returns:
      the Conjunction prefix letter
    • getPronounSuffix

      public String getPronounSuffix(String postag)
      Returns:
      if have a flag which is a noun and has pronoun, return the suffix letters for this case
    • getFlag

      public char getFlag(String postag, String flagType)
    • setFlag

      public String setFlag(String postag, String flagType, char flag)
    • setProcleticFlags

      public String setProcleticFlags(String postag)
    • mergePosTag

      public String mergePosTag(String sourcePosTag, String targetPosTag)
    • setSingle

      public String setSingle(String postag)
    • setDual

      public String setDual(String postag)
    • setPlural

      public String setPlural(String postag)
    • setMajrour

      public String setMajrour(String postag)
    • setMarfou3

      public String setMarfou3(String postag)
    • setMansoub

      public String setMansoub(String postag)
    • setTanwin

      public String setTanwin(String postag)