Skip to content
Prev 244990 / 398502 Next

How to apitalize leading letters & else of personal names?

RockO <rock.ouimet <at> gmail.com> writes:
This is pretty tricky.  gsub() can do some pretty slick things,
including replace with capitalized versions, so you could probably
write a gsub string to capitalize letters appearing at the beginning
of words OR after non-alphabetic characters.  (See the end of the
examples in ?gsub ...) 

"McIntyre" represents
a whole other class of difficulty.  Some Scots capitalize after "Mc",
others don't.  And what about all the rules about capitalization (or not)
after de/du/van/von?  What would you do with a Dutch name like "'t Hooft" ... ?