Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Handling caps for surnames with capitals in the middle (was: Irish Surnames)

by mrbbking (Hermit)
on May 06, 2002 at 14:49 UTC ( [id://164342]=note: print w/replies, xml ) Need Help??


in reply to Handling caps for surnames with capitals in the middle (was: Irish Surnames)

One of the Best Things About Perl is the CPAN.
One of the Best Things About helping CPAN-Testers is that you learn of modules you otherwise wouldn't...

This looks like a job for Lingua::EN::NameCase.

It misses on 'DeVelera', but gets quite a few others. Perhaps you could patch it to handle some of the names it currently misses, and submit your patch to the author?
(or maybe the 'EN' is being narrowly interpreted...)

use Lingua::EN::NameCase qw( nc ); foreach my $name(qw( mcginley macgee develera )){ print nc( $name ), "\n"; }
See my homenode for more about testing for CPAN.
  • Comment on Re: Handling caps for surnames with capitals in the middle (was: Irish Surnames)
  • Download Code

Log In?
Username:
Password:

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

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

    No recent polls found