Limiting spelling suggesions to the five cloest matches

This commit is contained in:
Brendan Robert 2015-09-12 23:22:15 -05:00
parent 38e8a0dcc7
commit 287ceca85f

View File

@ -247,7 +247,7 @@ public class MythosEditor {
message
.append(source.word)
.append(": ")
.append(suggestions.stream().map(Suggestion::getWord).collect(Collectors.joining(", ")))
.append(suggestions.stream().map(Suggestion::getWord).limit(5).collect(Collectors.joining(",")))
.append("\n");
});
return message.toString();