Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by AnomalousMonk (Archbishop)
on Jun 27, 2018 at 16:28 UTC ( [id://1217523]=note: print w/replies, xml ) Need Help??


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

... "Donna Roy-Mayweather" gets converted to "Roy-Mayweather, Donna."

I don't understand. I would have said that "Roy-Mayweather" was the entire and correct surname of this person. What result do you want to get?

Update: Oh, or did you mean that "Donna Roy-Mayweather" should be converted to "Roy-Mayweather, Donna", but the Text::Names module does not do this correctly? (Maybe a code example would help, maybe something along the lines of How to ask better questions using Test::More and sample data?)


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

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

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 18:12 UTC
    No, I was thinking "Mary Stevens Burgess" should probably be converted to "Mary Stevens-Burgess". But the answer is no, it shouldn't. See my comment below.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-23 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found