/* LanguageTool, a natural language style checker 
 * Copyright (C) 2015 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.rules.fr;

import org.languagetool.Language;
import org.languagetool.languagemodel.LanguageModel;
import org.languagetool.rules.Example;
import org.languagetool.rules.ngrams.ConfusionProbabilityRule;

import java.util.ResourceBundle;

/**
 * @since 3.1
 */
public class FrenchConfusionProbabilityRule extends ConfusionProbabilityRule {

  public FrenchConfusionProbabilityRule(ResourceBundle messages, LanguageModel languageModel, Language language) {
    super(messages, languageModel, language);
    addExamplePair(Example.wrong("Friedman résume cela en écrivant que le système de <marker>pris</marker> libres remplit trois fonctions.<marker>"),
                   Example.fixed("Friedman résume cela en écrivant que le système de <marker>prix</marker> libres remplit trois fonctions.<marker>"));
  }

}

@@ -1080,16 +1080,64 @@
 yRule;%0A%0A
+import java.util.Arrays;%0Aimport java.util.List;%0A
 import j
@@ -1161,16 +1161,16 @@
 Bundle;%0A
-
 %0A/**%0A * 
@@ -1264,16 +1264,162 @@
 Rule %7B%0A%0A
+  private static final List%3CString%3E EXCEPTIONS = Arrays.asList(%0A    // Use all-lowercase, matches will be case-insensitive.%0A    %22ce jour%22%0A  );%0A  %0A
   public
@@ -1525,16 +1525,16 @@
 uage) %7B%0A
-
     supe
@@ -1568,16 +1568,31 @@
 language
+, 3, EXCEPTIONS
 );%0A    a

fix false alarm (#1152)