Class GermanSynthesizer

  • All Implemented Interfaces:
    org.languagetool.synthesis.Synthesizer

    public class GermanSynthesizer
    extends org.languagetool.synthesis.BaseSynthesizer
    German word form synthesizer. Also supports compounds.
    Since:
    2.4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private GermanCompoundTokenizer splitter  
      • Fields inherited from class org.languagetool.synthesis.BaseSynthesizer

        possibleTags, SPELLNUMBER_TAG
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private @NotNull java.lang.String[] getCompoundForms​(org.languagetool.AnalyzedToken token, java.lang.String posTag, boolean posTagRegExp)  
      java.lang.String[] synthesize​(org.languagetool.AnalyzedToken token, java.lang.String posTag)  
      java.lang.String[] synthesize​(org.languagetool.AnalyzedToken token, java.lang.String posTag, boolean posTagRegExp)  
      • Methods inherited from class org.languagetool.synthesis.BaseSynthesizer

        createStemmer, getDictionary, getPosTagCorrection, getSpelledNumber, getStemmer, initPossibleTags, lookup
      • Methods inherited from class java.lang.Object

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

      • GermanSynthesizer

        public GermanSynthesizer​(org.languagetool.Language lang)
    • Method Detail

      • synthesize

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

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

        @NotNull
        private @NotNull java.lang.String[] getCompoundForms​(org.languagetool.AnalyzedToken token,
                                                             java.lang.String posTag,
                                                             boolean posTagRegExp)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException