in reply to Capitalization Case Help!
Corion is right. This problem cannot be solved programmatically (not perfectly anyway). Names do not conform to any spelling rules and the affixes, capitals, and possible spacing also morph. Even in your "should print" examples you have chosen decidedly non-standard, but entirely possible, spellings. McEnroe is more likely to be right than Mc Enroe but you will also find Mcenroe, Macenroe, MacEnroe, and Mac Enroe exist in the wild.
|
|---|