/* LanguageTool, a natural language style checker 
 * Copyright (C) 2006 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 org.languagetool.tagging.ru;

import java.util.Locale;

import org.languagetool.tagging.BaseTagger;

/**  Part-of-speech tagger.
 * Russian dictionary originally developed by www.aot.ru and licensed under LGPL.
 * See readme.txt for details, the POS tagset is described in tagset.txt
 */
public class RussianTagger extends BaseTagger {

  @Override
  public String getManualAdditionsFileName() {
    return "/ru/added.txt";
  }

  public RussianTagger() {
    super("/ru/russian.dict", new Locale("ru"));
  }
}

@@ -908,65 +908,277 @@
 ava.
-util.Locale;%0A%0Aimport org.languagetool.tagging.BaseTagger;
+io.IOException;%0Aimport java.util.ArrayList;%0Aimport java.util.Locale;%0Aimport java.util.List;%0A%0Aimport org.languagetool.AnalyzedToken;%0Aimport org.languagetool.AnalyzedTokenReadings;%0A%0Aimport org.languagetool.tagging.BaseTagger;%0A%0Aimport org.languagetool.tools.StringTools;%0A%0A
 %0A%0A/*
@@ -1583,10 +1583,636 @@
 ));%0A  %7D%0A
-%7D
 %0A
+%0A%0A%0A   @Override%0A  public List%3CAnalyzedTokenReadings%3E tag(List%3CString%3E sentenceTokens)%0A      throws IOException %7B%0A    List%3CAnalyzedTokenReadings%3E tokenReadings = new ArrayList%3C%3E();%0A    int pos = 0;%0A    for (String word : sentenceTokens) %7B%0A        if (word.length() %3E 1) %7B%0A          word = word.replace(%22%C3%B3%22, %22%D0%BE%22);%0A          word = word.replace(%22%C3%A1%22, %22%D0%B0%22);%0A          word = word.replace(%22%C3%A9%22, %22%D0%B5%22);%0A          word = word.replace(%22%C3%BD%22, %22%D1%83%22);%0A        %7D%0A      List%3CAnalyzedToken%3E l = getAnalyzedTokens(word);%0A      tokenReadings.add(new AnalyzedTokenReadings(l, pos));%0A      pos += word.length();%0A    %7D%0A    return tokenReadings;%0A  %7D%0A%0A%0A%7D

fix GitHub issue #526 for Russian