The function takes a word as input and applies a rule that capitalizes the first letter of each word, except for words that are not names, which are returned unchanged.
