@@ -0,0 +1,1649 @@
+/* LanguageTool, a natural language style checker%0A * Copyright (C) 2019 Daniel Naber (http://www.danielnaber.de)%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301%0A * USA%0A */%0Apackage org.languagetool.language;%0A%0Aimport org.junit.Test;%0Aimport org.languagetool.tokenizers.SentenceTokenizer;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Apublic class FrenchTest %7B%0A  %0A  @Test%0A  public void testSentenceTokenizer() %7B%0A    SentenceTokenizer tokenizer = new French().getSentenceTokenizer();%0A    assertThat(tokenizer.tokenize(%22Arr%C3%AAte de le cajoler... %C3%A7a ne donnera rien.%22).size(), is(2));  // TODO: should be 1%0A    assertThat(tokenizer.tokenize(%22Arr%C3%AAte de le cajoler%E2%80%A6 %C3%A7a ne donnera rien.%22).size(), is(2));  // TODO: should be 1%0A    assertThat(tokenizer.tokenize(%22Il est possible de le contacter par tous les moyens (courrier, t%C3%A9l%C3%A9phone, mail...) %C3%A0 condition de vous pr%C3%A9senter.%22).size(), is(2)); // TODO: should be 1%0A  %7D%0A%0A%7D

add tests for sentence splitting special cases not handled properly yet