correctPostpositions function
Implementation
correctPostpositions(String text) {
return postPositions.fold<String>(text, (previousValue, element) {
return previousValue.replaceAllMapped(element[0], (match) {
return '${match[1]!.replaceAll(' ', '')}${getPhonemes(match[0]!).finale != '' ? element[1] : element[2]}';
});
});
}