I want to transform a string of text to a dictionary, which contains all the unique words as a key, and translation as a value.
I know how to transform a String into a stream containing unique words (Split -> List -> stream() -> distinct()), and I have translation service available, but what is the most convenient way to reduce the stream into Map with the original element and it's translation in general?