Skip to content

Commit

Permalink
[de] various minor spelling improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
janschreiber committed Sep 8, 2017
1 parent 3de4155 commit 02a636c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,16 @@ protected List<String> getAdditionalTopSuggestions(List<String> suggestions, Str
if (!hunspellDict.misspelled(suggestion)) {
return Collections.singletonList(suggestion);
}
} else if (word.equals("gin")) {
return Collections.singletonList("ging");
} else if (word.equals("ua")) {
return Collections.singletonList("u.\u202fa.");
} else if (word.equals("ua.")) {
return Collections.singletonList("u.\u202fa.");
} else if (word.equals("zb")) {
return Collections.singletonList("z.\u202fB.");
} else if (word.equals("zb.")) {
return Collections.singletonList("z.\u202fB.");
} else if (word.equals("Ruhigkeit")) {
return Collections.singletonList("Ruhe");
} else if (word.equals("angepreist")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13234,7 +13234,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<message>Den ersten Bestandteil unfest zusammengesetzter Verben schreibt man auch in getrennter Stellung klein.</message>
<suggestion><match no="3" case_conversion="startlower"/></suggestion>
<example correction="kopf">Das Publikum stand <marker>Kopf</marker>.</example>
<example correction="kopf">Als er es erfuhtr, stand er <marker>Kopf</marker>.</example>
<example correction="kopf">Als er es erfuhr, stand er <marker>Kopf</marker>.</example>
</rule>
<rule>
<pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public void testGetAdditionalTopSuggestions() throws Exception {
assertFirstSuggestion("gehnemigung", "Genehmigung", rule, lt);
assertFirstSuggestion("Korrigierungen", "Korrekturen", rule, lt);
assertFirstSuggestion("Ticketresawihrung", "Ticketreservierung", rule, lt);
assertFirstSuggestion("gin", "ging", rule, lt);
}

@Test
Expand Down

0 comments on commit 02a636c

Please sign in to comment.