Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Lingua::EN::AddressParse 1.16

    Download button

    No screenshots available
    Downloads: 370  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kim Ryan | More programs
    Perl Artistic License / FREE
    May 3rd, 2012, 06:57 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Lingua::EN::AddressParse description

    Manipulate geographical addresses

    Lingua::EN::AddressParse is a Perl module that can be used to manipulate geographical addresses.

    SYNOPSIS

     use Lingua::EN::AddressParse;

     my %args =
     (
     country => 'Australia',
     auto_clean => 1,
     force_case => 1,
     abbreviate_subcountry => 0,
     abbreviated_subcountry_only => 1
     );

     my $address = new Lingua::EN::AddressParse(%args);
     $error = $address->parse(
     "UNIT 2A 14-16 OLD SOUTH HEAD ST ST JOHNS WOOD NSW 2021 AUSTRALIA : HOLD MAIL");

     %my_address = $address->components;
     print $my_address{sub_property_identifier}; # UNIT 2A
     print $my_address{property_identifier}; # 14-16

     print $my_address{suburb}; # ST JOHNS WOOD

     %my_formatted_address = $address->case_components;
     print $my_formatted_address{street}; # Old South Head
     print $my_formatted_address{street_type}; # St

     ­dress_properties = $address->properties;
     print $address_properties{type}; # suburban
     print $address_properties{non_matching}; # : HOLD MAIL

     $correct_casing = $address->case_all;


    This module takes as input a suburban, rural or postal address in free format text such as,

     2A LOW ST KEW NSW 2123
     12/3-5 AUBREY ST MOUNT VICTORIA VICTORIA 3133
     "OLD REGRET" WENTWORTH FALLS NSW 2782 AUSTRALIA
     GPO Box K318, HAYMARKET, NSW 2000

     12 1st Avenue N Suite # 2 Somewhere CA 12345 USA


    and attempts to parse it. If successful, the address is broken down into it's components and useful functions can be performed such as :

     converting upper or lower case values to title case (2A Low St Kew NSW 2123)
     extracting the addresses individual components (2A,Low,St,KEW,NSW,2123)
     determining the type of format the address is in ('suburban')


    If the address cannot be parsed you have the option of cleaning the address of bad characters, or extracting any portion that was parsed and the portion that failed.

    This module can be used for analysing and improving the quality of lists of postal addresses.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    geographical address | address parser | Perl module | Perl | geographical | address

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM