de.danielnaber.languagetool.synthesis.en
Class EnglishSynthesizer

Object
  extended by BaseSynthesizer
      extended by EnglishSynthesizer
All Implemented Interfaces:
Synthesizer

public class EnglishSynthesizer
extends BaseSynthesizer

English word form synthesizer.
Based on part-of-speech lists in Public Domain. See readme.txt for details, the POS tagset is described in tagset.txt. There are to special additions:

  1. +DT - tag that adds "a" or "an" (according to the way the word is pronounced) and "the"
  2. +INDT - a tag that adds only "a" or "an"

Author:
Marcin MiƂkowski

Constructor Summary
EnglishSynthesizer()
           
 
Method Summary
 String[] synthesize(AnalyzedToken token, String posTag)
          Get a form of a given AnalyzedToken, where the form is defined by a part-of-speech tag.
 
Methods inherited from class BaseSynthesizer
getPosTagCorrection, synthesize
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnglishSynthesizer

public EnglishSynthesizer()
Method Detail

synthesize

public String[] synthesize(AnalyzedToken token,
                           String posTag)
                    throws IOException
Get a form of a given AnalyzedToken, where the form is defined by a part-of-speech tag.

Specified by:
synthesize in interface Synthesizer
Overrides:
synthesize in class BaseSynthesizer
Parameters:
token - AnalyzedToken to be inflected.
posTag - A desired part-of-speech tag.
Returns:
String value - inflected word.
Throws:
IOException


Copyright © 2005-2009 Daniel Naber