Lingua::EN::NameParse

Routines for manipulating a person's name
Download

Lingua::EN::NameParse Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Kim Ryan
  • Publisher web site:
  • http://search.cpan.org/~kimryan/Locale-SubCountry-1.37/lib/Locale/SubCountry.pm

Lingua::EN::NameParse Tags


Lingua::EN::NameParse Description

Routines for manipulating a person's name Lingua::EN::NameParse is a Perl module with routines for manipulating a person's name.SYNOPSIS use Lingua::EN::NameParse qw(clean case_surname); # optional configuration arguments my %args = ( salutation => 'Dear', sal_default => 'Friend', auto_clean => 1, force_case => 1, lc_prefix => 1, initials => 3, allow_reversed => 1, joint_names => 0, extended_titles => 0 ); my $name = new Lingua::EN::NameParse(%args); $error = $name->parse("MR AC DE SILVA"); %name_comps = $name->components; $surname = $name_comps{surname_1}; # DE SILVA $correct_casing = $name->case_all; # Mr AC de Silva $correct_casing = $name->case_all_reversed ; # de Silva, AC $good_name = &clean("Bad Na9me "); # "Bad Name" $name->salutation; # Dear Mr de Silva %my_properties = $name->properties; $number_surnames = $my_properties{number}; # 1 $bad_input = $my_properties{non_matching}; $name->report; # create a report listing all information about the parsed name $lc_prefix = 0; $correct_case = &case_surname("DE SILVA-MACNAY",$lc_prefix); # De Silva-MacNay Requirements: · Perl


Lingua::EN::NameParse Related Software