NAME

Lingua::JA::Name::Splitter - split a Japanese name into given and family

SYNOPSIS

use Lingua::JA::Name::Splitter 'split_kanji_name';
my ($family, $given) = split_kanji_name ('風太郎');
# Now $family = 風 and $given = 太郎.

FUNCTIONS

split_kanji_name

my ($family, $given) = split_kanji_name ('渡辺純子');

This splits the name using some heuristics. At the time of writing, this module has not been tested extensively, so the heuristics will be subject to change as more data is received.

split_romaji_name

my ($first, $last) = split_japanese_name ('KATSU, Shintaro');
# $first = Shintaro, $last = KATSU
my ($first, $last) = split_japanese_name ('Risa Yoshiki');
# $first = Risa, $last = Yoshiki

Given a string containing a name of a Japanese person in romanized form, try to guess which part is the first and which part is the last name.

AUTHOR

Ben Bullock, <bkb@cpan.org>

COPYRIGHT & LICENCE

This package and associated files are copyright (C) 2012 Ben Bullock.

You can use, copy, modify and redistribute this package and associated files under the Perl Artistic Licence or the GNU General Public Licence.