Kenichi Ishigaki > Lingua-JA-Romaji-Valid-0.03 > Lingua::JA::Romaji::Valid::Filter::Word

Download:
Lingua-JA-Romaji-Valid-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Lingua::JA::Romaji::Valid::Filter::Word

DESCRIPTION ^

Lingua::JA::Romaji::Valid splits a given word into pieces, but some of the filters should be applied before splitting.

METHODS ^

new

creates an object.

normalize_n_with_apostrophe

an apostrophe between "n" and vowels is important if you want to know if the "n" is a syllabic "n" or the first part of a kana. However, it doesn't matter if the phrase is valid romanization or not. This filter cuts off the apostrophes between "n" and vowels to make validation easier.

normalize_n_with_hyphen

cuts off the hyphen between "n" and vowels.

normalize_oh

Long "o" may be exprssed by "oh" in passport Hepburn (and vulgar romanizations). This filter cuts off the "h"s following "o". This might be wrong assumption in some cases (eg. the "h" in O-hira, one of the late prime ministers, should not be cut off), but anyway it doesn't affect the result.

normalize_long_vowel_with_h

cuts off the "h"s following vowels.

normalize_long_vowel_with_symbols

cuts off the underscores, hyphens or circumflexes following vowels to denote they are long.

prohibit_initial_n

Ordinary Japanese names don't start with syllabic "n".

prohibit_initial_wo

Ordinary Japanese names don't start with a particle "wo".

AUTHOR ^

Kenichi Ishigaki, <ishigaki at cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2007 by Kenichi Ishigaki.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: