Acme-Lou
view release on metacpan or search on metacpan
# NAME
Acme::Lou - Let's together with Lou Ohshiba
# SYNOPSIS
use utf8;
use Acme::Lou qw/lou/;
print lou("人çã«ã¯ã大åãªä¸ã¤ã®è¢ãããã¾ãã");
# => ã©ã¤ãã«ã¯ãã¤ã³ãã¼ã¿ã³ããªä¸ã¤ã®ããã°ãããã¾ãã
# DESCRIPTION
Translate Japanese text into Lou Ohshiba (Japanese comedian) style.
# METHODS
## $lou = Acme::Lou->new()
Creates an Acme::Lou object.
## $lou->translate($text \[, \\%options \])
$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.
# EXPORTS
No exports by default.
## lou
use Acme::Lou qw/lou/;
my $text = <<'...';
ç¥åç²¾èã®éã®å£°ã諸è¡ç¡å¸¸ã®é¿ãããã
æ²ç¾
忍¹ã®è±ã®è²ãçè
å¿
è¡°ã®çãç¾ãã
奢ãã人ãä¹
ããããã坿¥ã®å¤ã®å¤¢ã®ãã¨ãã
- ã平家ç©èªããã
...
print lou($text);
# ç¥åãã³ãã«ã®ãã«ã®ãã¤ã¹ã諸è¡ç¡å¸¸ã®ã¨ã³ã¼ããã
# æ²ç¾
忍¹ã®ãã©ã¯ã¼ã®ã«ã©ã¼ãçè
å¿
è¡°ã®ãªã¼ãºã³ãã·ã§ã¼ããã
# ãã©ã¦ãããããã¥ã¼ãã³ãä¹
ããããããªã³ãªã¼ã¹ããªã³ã°ã®ã¤ã¼ããã³ã°ã®ããªã¼ã ã®ãã¨ãã
# - ã平家ã¹ãã¼ãªã¼ããã
Shortcut to `Acme::Lou->new->translate()`.
# OBSOLETED FUNCTION
To keep this module working, following functions are obsoleted. sorry.
- html input/output
# AUTHOR
Naoki Tomita <tomita@cpan.org>
# SEE ALSO
[https://lou5.jp/](https://lou5.jp/)
[http://taku910.github.io/mecab/](http://taku910.github.io/mecab/)
Special thanks to Taku Kudo
# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
( run in 0.906 second using v1.01-cache-2.11-cpan-99c4e6809bf )