/* LanguageTool, a natural language style checker 
 * Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de)
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
 * USA
 */
package de.danielnaber.languagetool.synthesis;

import java.io.IOException;

import de.danielnaber.languagetool.AnalyzedToken;

/**
 * Part-of-speech synthesizer interface. Implementations are 
 * heavily language-dependent.
 * 
 * @author Marcin Miłkowski
 */

public interface Synthesizer {

  /** Generates a form of the word with a given POS tag for a given lemma. 
   * @param token the token to be used for synthesis
   * @param posTag POS tag of the form to be generated.
   **/
  public String[] synthesize(final AnalyzedToken token, final String posTag) throws IOException;

  /** Generates a form of the word with a given POS tag for a given lemma.
   * POS tag can be specified using regular expressions. 
   * @param token the token to be used for synthesis
   * @param posTag POS tag of the form to be generated.
   * @param posTagRegExp Specifies whether the posTag string is a 
   *  regular expression. 
   **/
  public String[] synthesize(final AnalyzedToken token, final String posTag, boolean posTagRegExp) throws IOException;
  
  /**
   * Gets a corrected version of the POS tag used for synthesis.
   * Useful when the tagset defines special disjunction that
   * need to be converted into regexp disjunctions.
   * @param posTag Original POS tag.
   * to correct.
   * @return @String Converted POS tag.
   */
  public String getPosTagCorrection(final String posTag);
}

@@ -1361,38 +1361,32 @@
 ng%5B%5D synthesize(
-final 
 AnalyzedToken to
@@ -1381,38 +1381,32 @@
 yzedToken token,
- final
  String posTag) 
@@ -1798,22 +1798,16 @@
 thesize(
-final 
 Analyzed
@@ -1822,14 +1822,8 @@
 ken,
- final
  Str
@@ -2163,16 +2163,16 @@
 .%0A   */%0A
+
   public
@@ -2203,14 +2203,8 @@
 ion(
-final 
 Stri

remove "final" from interface where they have no effect