Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 a kettle whistles...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-01-20 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.