From 0eb8a8cd744903a43072e2ede44c7e8ddd021338 Mon Sep 17 00:00:00 2001 From: Jan Schreiber Date: Thu, 13 Jul 2017 11:37:05 +0200 Subject: [PATCH] GermanSpellerRule.java: improve suggestions for -tip --- .../java/org/languagetool/rules/de/GermanSpellerRule.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/languagetool-language-modules/de/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java b/languagetool-language-modules/de/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java index 3acf6b7fd10e..3b4ac091d92c 100644 --- a/languagetool-language-modules/de/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java +++ b/languagetool-language-modules/de/src/main/java/org/languagetool/rules/de/GermanSpellerRule.java @@ -229,6 +229,10 @@ protected List getAdditionalTopSuggestions(List suggestions, Str return Collections.singletonList(word.replaceFirst("derbies$", "derbys")); } else if (word.endsWith("stories")) { return Collections.singletonList(word.replaceFirst("stories$", "storys")); + } else if (word.endsWith("tip")) { + return Collections.singletonList(word.replaceFirst("tip$", "tipp")); + } else if (word.endsWith("tips")) { + return Collections.singletonList(word.replaceFirst("tips$", "tipps")); } else if (word.equals("Rolladen")) { return Collections.singletonList("Rollladen"); } else if (word.equals("Maßname")) {