The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::RuledValidator::Language::Japanese - Data::RuledValidator usign rule written in Japanese

VERSION

Version 0.02

SYNOPSIS

In rule file;

HIRAGANA                   は ひらがな
KATAKANA                   は カタカナ
# thease(_with_with_space) faile
HIRAGANA_with_white_space  は ひらがな
KATAKANA_with_white_space  は カタカナ
HIRAGANA_with_white_space2 は ひらがな
KATAKANA_with_white_space2 は カタカナ

JP_ZIP                     は 郵便番号
JP_MOBILE_EMAIL            は 携帯メール
JP_MOBILE_EMAIL_DOCOMO     は 携帯メール
JP_MOBILE_EMAIL_AU         は 携帯メール
JP_MOBILE_EMAIL_SOFTBANK   は 携帯メール
JP_MOBILE_EMAIL_WILLCOM    は 携帯メール
JP_MOBILE_EMAIL_VODAFONE   は 携帯メール
JP_MOBILE_EMAIL_DOCOMO     は DoCoMoメール
JP_MOBILE_EMAIL_AU         は AUメール
JP_MOBILE_EMAIL_SOFTBANK   は Softbankメール
JP_MOBILE_EMAIL_VODAFONE   は Vodafoneメール
JP_PHONE_NUMBER            は 電話番号
JAPANESE_WORDS             の長さは 0, 10

PROVIDED CONDITIONS

This plugin provides the following Conditions.

数字
number は 数字

For number

英語
alphabet は 英語

For alphabet

英数字
alphanum は 英数字

For alphanum

単語
word は 単語

For word

単文
words は 単文

For words

ひらがな,平仮名
family_name_kana は ひらがな

For hiragana.

かたかな,片仮名,カタカナ
family_name_kana は かたかな

For katakana

電話番号
zipcode は 電話番号

For Japanese phone number.

郵便番号
zipcode is 郵便場号

For Japanese zip code. ###-####.

携帯メール
mobile_mail is 携帯メール

For Japanese mobile mail address. It allow many kinds of mobile email address.

If you want to check specified kinds of mail address, use the following;

  • DoCoMoメール

  • AUメール

  • Vodafoneメール

  • Softbankメール

PROVIDED OPERATORS

This plugin provides the following Operator.

hiragana は 平仮名

This is same as normal operator is.

の長さは #, #
jp_words の長さは 0, 10

If the length of jp_words is from 0 to 10, it is valid. The first number is min length, and the second number is max length.

You can write only one value.

jp_words の長さは 5

This means length of jp_words lesser than 6.

AUTHOR

Ktat, <ktat at cpan.org>

BUGS

Please report any bugs or feature requests to bug-data-ruledvalidator-plugin-japanese at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-RuledValidator-Language-Japanese. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Data::RuledValidator::Plugin::Japanese

You can also look for information at:

SEE ALSO

COPYRIGHT & LICENSE

Copyright 2007 Ktat, all rights reserved.

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