The function applies a rule that converts words to title case, except for place names and event names, which are converted to lowercase and uppercase, respectively.

