/* 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.nl;
import junit.framework.TestCase;
import org.languagetool.TestTools;
import org.languagetool.language.Dutch;
import org.languagetool.tokenizers.WordTokenizer;
import java.io.IOException;
public class DutchTaggerTest extends TestCase {
private DutchTagger tagger;
private WordTokenizer tokenizer;
@Override
public void setUp() {
tagger = new DutchTagger();
tokenizer = new WordTokenizer();
}
public void testDictionary() throws IOException {
TestTools.testDictionary(tagger, new Dutch());
}
public void testTagger() throws IOException {
TestTools.myAssert("Dit is een Nederlandse zin om het programma'tje te testen.",
"Dit/[dit]DTh -- is/[zijn]VB3 -- een/[een]DTe|een/[een]NM|een/[een]NM1|een/[een]NN1d -- Nederlandse/[Nederlandse]NN1 -- zin/[zin]NN1d|zin/[zinnen]VB1 -- om/[om]PRom -- het/[het]DTh -- programma/[programma]NN1h -- tje/[null]null -- te/[te]PRte -- testen/[test]NN2|testen/[testen]VBi", tokenizer, tagger);
TestTools.myAssert("zwijnden","zwijnden/[zwijnen]VBh", tokenizer, tagger);
}
}