Class PolishSynthesizer

java.lang.Object
org.languagetool.synthesis.BaseSynthesizer
org.languagetool.synthesis.pl.PolishSynthesizer
All Implemented Interfaces:
org.languagetool.synthesis.Synthesizer

public class PolishSynthesizer extends org.languagetool.synthesis.BaseSynthesizer implements org.languagetool.synthesis.Synthesizer
Polish word form synthesizer. Based on project Morfologik.
  • Field Details

  • Constructor Details

    • PolishSynthesizer

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

    • synthesize

      public final 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 final String[] synthesize(org.languagetool.AnalyzedToken token, String pos, boolean posTagRegExp) throws IOException
      Specified by:
      synthesize in interface org.languagetool.synthesis.Synthesizer
      Overrides:
      synthesize in class org.languagetool.synthesis.BaseSynthesizer
      Throws:
      IOException
    • getPosTagCorrection

      public final String getPosTagCorrection(String posTag)
      Specified by:
      getPosTagCorrection in interface org.languagetool.synthesis.Synthesizer
      Overrides:
      getPosTagCorrection in class org.languagetool.synthesis.BaseSynthesizer
    • getWordForms

      private List<String> getWordForms(org.languagetool.AnalyzedToken token, String posTag, boolean isNegated, morfologik.stemming.IStemmer synthesizer)