Acme::Lou - Let's together with Lou Ohshiba
use utf8; use Acme::Lou qw/lou/; print lou("人生には、大切な三つの袋があります。"); # => ライフには、インポータントな三つのバッグがあります。
Translate Japanese text into Lou Ohshiba (Japanese comedian) style.
Creates an Acme::Lou object.
$lou = Acme->Lou->new(); $out = $lou->translate($text, { lou_rate => 50 });
Return translated unicode string.
%options:
lou_rate
Percentage of translating. 100(default) means full, 0 means do nothing.
No exports by default.
use Acme::Lou qw/lou/; my $text = <<'...'; 祇園精舎の鐘の声、諸行無常の響きあり。 沙羅双樹の花の色、盛者必衰の理を現す。 奢れる人も久しからず、唯春の夜の夢のごとし。 - 「平家物語」より ... print lou($text); # 祇園テンプルのベルのボイス、諸行無常のエコーあり。 # 沙羅双樹のフラワーのカラー、盛者必衰のリーズンをショーする。 # プラウドすれるヒューマンも久しからず、オンリースプリングのイーブニングのドリームのごとし。 # - 「平家ストーリー」より
Shortcut to Acme::Lou->new->translate().
Acme::Lou->new->translate()
To keep this module working, following functions are obsoleted. sorry.
html input/output
Naoki Tomita <tomita@cpan.org>
https://lou5.jp/
http://taku910.github.io/mecab/
Special thanks to Taku Kudo
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::Lou, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Lou
CPAN shell
perl -MCPAN -e shell install Acme::Lou
For more information on module installation, please visit the detailed CPAN module installation guide.