Title Caser (Title Case a Sentence challenge)

Title Caser (Title Case a Sentence challenge)
0

#1

Built from an updated version of the “Title Case a Sentence” challenge. This one ignores certain user-specified words and anything in all-caps (with the assumption that they’re either abbreviations or intentionally that way).

Pen

How could this be optimized?

(One thing would be improving the abbreviation detection - e.g. “VPNs proven to cause cancer” currently returns “Vpns Proven to Cause Cancer” - should be “VPNs Proven to Cause Cancer”.)