Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 ( #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
Node Status?
node history
Node Type: note [id://164342]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-10-22 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls