Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Paladin (Vicar)
on Jun 27, 2018 at 16:26 UTC ( #1217522=note: print w/replies, xml ) Need Help??


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

If your assumption is that everyone in your data only has 1 first name, and everything else is a multi-part last name, they stick hyphens in place of all the spaces except the first, then use cleanNames to handle them as it appears to handle hyphenated names fine from your example.

Of course, if you can't assume there's only 1 first name for everyone, you need to make a set of rules on how to decide what's part of a first name, what's part of a last name. Then hyphenate appropriately, and again, use cleanNames as appropriate.

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2020-02-24 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (107 votes). Check out past polls.

    Notices?