How does your format show "Tina McBride" (anyone for some country music?) or "Tim O'Reilly" (mmmm... books...)? If they are "TinaMcBride" and "TimO'Reilly", then your algorithm will end up with "Tina Mc Bride" and "Tim O' Reilly". This is a HARD problem. Because some people are really, really picky about their names, and getting it wrong is just not a (legal) option.

I had a coworker who legally appended his nickname to his name to make a new surname. That's because he lived in Toronto, but had a very Polish name - one with sounds that us poor English-speakers couldn't distinguish. He went by this nickname at all times, and wanted things like his email (centrally controlled via Lotus Notes) to show up as just his nickname - not his full name as is the default. It took him 6 months to get that changed. Because it was his legal surname, he had that legal right to be referred to by that name.

It is that serious to some people.


In reply to Re: Insert Space between names by Tanktalus
in thread Insert Space between names by steelrose

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.