Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Module to intelligently handle names with two last names and other best practices?

by hippo (Bishop)
on Jun 27, 2018 at 16:16 UTC ( [id://1217520]=note: print w/replies, xml ) Need Help??


in reply to Module to intelligently handle names with two last names and other best practices?

Names are illogical so forget trying to parse them arbitrarily. Treat each full name as an indivisible unit.

  • Comment on Re: Module to intelligently handle names with two last names and other best practices?

Replies are listed 'Best First'.
Re^2: Module to intelligently handle names with two last names and other best practices?
by nysus (Parson) on Jun 27, 2018 at 16:20 UTC

    True, but for 99.9% of the names in my database which are traditional American names, it would be useful to properly handle the names. I'm not too worried about the edge cases. I just want to be able to try to sort by the different types of last names. It would be useful for my purposes.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

      True, but for 99.9% of the names in my database which are traditional American names

      Like Wernher Magnus Maximilian Freiherr von Braun, US citizen since April 15, 1955? Even the rules for processing his name in Germany, Austria, and Switzerland are everything but homogeneous. How would you process it? (Hint: wrong. No matter how you process it.)

      If Wernher was an Austrian citizen, his name would be illegal. No "von", no "Freiherr". Just "Wernher Magnus Maximilian Braun". So if some naive Austrian coder would have written a database, he would perhaps automatically remove "von" and "Freiherr". But then again, he would be wrong. Wernher was US citizen, and he previously was a German citizen, so he could legally use his full name, including "Freiherr von", in Austria.

      And how would you handle those people? Or this one, for whom Wikipedia lists 10 different names? Or "Ludwell Ebersole Gaines Sr." (random pick from http://politicalstrangenames.blogspot.com/), Charles Emerson Winchester III, Charles "Trip" Tucker III?

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      99.9% of the names in my database which are traditional American names

      You mean like Sitting Bull? Good luck calling him "Mr. Bull" to his face.

        For that matter, good luck addressing Tȟatȟáŋka Íyotake as "Mr. Sitting Bull". He'd probably just give you a blank look and say "You talking to me?" :)


        Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-19 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found