/* LanguageTool, a natural language style checker
 * Copyright (C) 2019 Daniel Naber (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.en;

import org.jetbrains.annotations.NotNull;
import org.languagetool.Language;
import org.languagetool.languagemodel.LanguageModel;

import java.util.Collections;
import java.util.List;
import java.util.ResourceBundle;

/**
 * False friends for Dutch native speakers who write English text, based on ngrams.
 * @since 5.1
 */
public class EnglishForDutchmenFalseFriendRule extends EnglishForL2SpeakersFalseFriendRule {

  public EnglishForDutchmenFalseFriendRule(ResourceBundle messages, LanguageModel languageModel, Language motherTongue, Language language)  {
    super(messages, languageModel, motherTongue, language);
    // TODO: Hint: "barracks" (English) betekent "kazerne" (Dutch). Bedoelde u 'huts'?
    //addExamplePair(Example.wrong("My <marker>handy</marker> is broken."),
    //               Example.fixed("My <marker>phone</marker> is broken."));
  }

  @Override
  public String getId() {
    return "EN_FOR_NL_SPEAKERS_FALSE_FRIENDS";
  }

  @NotNull
  @Override
  protected List<String> getFilenames() {
    return Collections.singletonList("confusion_sets_l2_nl.txt");
  }

}

@@ -1009,16 +1009,55 @@
 geModel;
+%0Aimport org.languagetool.rules.Example;
 %0A%0Aimport
@@ -1547,97 +1547,8 @@
     
-// TODO: Hint: %22barracks%22 (English) betekent %22kazerne%22 (Dutch). Bedoelde u 'huts'?%0A    //
 addE
@@ -1573,18 +1573,19 @@
 .wrong(%22
-My
+The
  %3Cmarker
@@ -1589,13 +1589,12 @@
 ker%3E
-handy
+want
 %3C/ma
@@ -1595,31 +1595,45 @@
 nt%3C/marker%3E 
-is brok
+should be painted gre
 en.%22),%0A    /
@@ -1635,10 +1635,8 @@
     
-//
     
@@ -1665,10 +1665,11 @@
 ed(%22
-My
+The
  %3Cma
@@ -1677,13 +1677,12 @@
 ker%3E
-phone
+wall
 %3C/ma
@@ -1691,15 +1691,29 @@
 er%3E 
-is brok
+should be painted gre
 en.%22

add example