You method for splitting words is probably overly simplistic - the function will produce incorrect results with some combinations of punctuation. Maybe consider using regex to split on non-word characters. The function will also wreck words that are intentionally in all caps - UK, USA, NATO etc.
You are correct but remember the requirements in which I am working. We just need to proper capitalize subjects of email messages that would not have all cap words like you mentioned.
You method for splitting words is probably overly simplistic - the function will produce incorrect results with some combinations of punctuation. Maybe consider using regex to split on non-word characters. The function will also wreck words that are intentionally in all caps - UK, USA, NATO etc.
You are correct but remember the requirements in which I am working. We just need to proper capitalize subjects of email messages that would not have all cap words like you mentioned.
Another example email subject that will not be handled correctly by the code: