Skip to content

Commit

Permalink
GermanSpellerRule.java: improve suggestions for -tip
Browse files Browse the repository at this point in the history
  • Loading branch information
janschreiber committed Jul 13, 2017
1 parent b526fb5 commit 0eb8a8c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ protected List<String> getAdditionalTopSuggestions(List<String> 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")) {
Expand Down

0 comments on commit 0eb8a8c

Please sign in to comment.