The function applies a simple mapping that replaces each word with its first letter.

