Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by AnomalousMonk (Bishop)
on Jun 27, 2018 at 16:28 UTC ( #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 (Vicar) 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
Node Status?
node history
Node Type: note [id://1217523]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2019-12-07 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (161 votes). Check out past polls.

    Notices?