Kenichi Ishigaki > Lingua-JA-Romaji-Valid-0.03 > Lingua::JA::Romaji::Valid::Rule

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

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Lingua::JA::Romaji::Valid::Rule

SYNOPSIS ^

  package Lingua::JA::Romaji::Valid::Something
  use base qw( Lingua::JA::Romaji::Valid::Rule );

  my $rule = Lingua::JA::Romaji::Valid::Something->new;
  $rule->is_valid('ka');

DESCRIPTION ^

Base class for various rules of romanization.

METHOD ^

new

creates an object to provide rules for the validator.

is_valid

returns if the kana (first argument) is valid or not.

valid_consonants

sets and returns the valid consonants for the rule. Valid kana expressions are prepared with these consonants.

should_delete

sets and returns exceptional invalid kana expressions for the rule.

should_add

sets and returns additional valid kana expressions for the rule.

filters

sets and returns filters for the rule.

verbose

if set to true, the validator spits warnings when it encounters broken or banned kana expressions.

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: