transform method
Transforms input
into an instance of U
using the provided locale
.
Implementation
@override
String transform(String input, String locale) {
final result = _transformSentences(
input,
convertAcronyms: convertAcronyms,
transformWord: (word, isFirstWordInSentence) =>
isFirstWordInSentence ? _capitalizeWord(word) : word.toLowerCase(),
);
return result;
}