suggestion function
Implementation
(String, List<String>) suggestion(String latin) {
final (correctedLatin, suggestions) = algorithmSuggestion(latin);
final memoryWord = memoryWords[latin];
if (memoryWord != null) {
suggestions.insert(0, memoryWord);
}
if (suggestions.length == 1 && suggestions.first.isEmpty) suggestions.clear();
final LinkedHashMap<String, String> removeDuplicate =
LinkedHashMap<String, String>();
for (var suggestion in suggestions) {
removeDuplicate[ShapeUtil.getShape(suggestion)] = suggestion;
}
return (correctedLatin, removeDuplicate.values.toList());
}