Skip to content

Commit

Permalink
[de] more ...ies -> ...ys cases
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaber committed Jul 12, 2017
1 parent 811aa03 commit 07e3a71
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -261,6 +261,12 @@ protected List<String> getAdditionalTopSuggestions(List<String> suggestions, Str
return Collections.singletonList("Hobbys");
} else if (word.equals("Parties")) {
return Collections.singletonList("Partys");
} else if (word.equals("Babies")) {
return Collections.singletonList("Babys");
} else if (word.equals("Barbies")) {
return Collections.singletonList("Barbys");

This comment has been minimized.

Copy link
@janschreiber

janschreiber Jul 12, 2017

Contributor

I don't think this one is correct: the doll is written with ie.

This comment has been minimized.

Copy link
@danielnaber

danielnaber Jul 12, 2017

Author Member

You're right, I've removed it. Thanks for paying close attention.

} else if (word.equals("Ladies")) {
return Collections.singletonList("Ladys");
} else if (!StringTools.startsWithUppercase(word)) {
String ucWord = StringTools.uppercaseFirstChar(word);
if (!suggestions.contains(ucWord) && !hunspellDict.misspelled(ucWord)) {
Expand Down

0 comments on commit 07e3a71

Please sign in to comment.