Acme-Lou
view release on metacpan or search on metacpan
lib/Acme/Lou.pm view on Meta::CPAN
Creates an Acme::Lou object.
=head2 $lou->translate($text [, \%options ])
$lou = Acme->Lou->new();
$out = $lou->translate($text, { lou_rate => 50 });
Return translated unicode string.
I<%options>:
=over 4
=item * lou_rate
Percentage of translating. 100(default) means full, 0 means do nothing.
=back
=head1 EXPORTS
No exports by default.
=head2 lou
use Acme::Lou qw/lou/;
my $text = <<'...';
ç¥åç²¾èã®éã®å£°ã諸è¡ç¡å¸¸ã®é¿ãããã
æ²ç¾
忍¹ã®è±ã®è²ãçè
å¿
è¡°ã®çãç¾ãã
奢ãã人ãä¹
ããããã坿¥ã®å¤ã®å¤¢ã®ãã¨ãã
- ã平家ç©èªããã
...
print lou($text);
# ç¥åãã³ãã«ã®ãã«ã®ãã¤ã¹ã諸è¡ç¡å¸¸ã®ã¨ã³ã¼ããã
# æ²ç¾
忍¹ã®ãã©ã¯ã¼ã®ã«ã©ã¼ãçè
å¿
è¡°ã®ãªã¼ãºã³ãã·ã§ã¼ããã
# ãã©ã¦ãããããã¥ã¼ãã³ãä¹
ããããããªã³ãªã¼ã¹ããªã³ã°ã®ã¤ã¼ããã³ã°ã®ããªã¼ã ã®ãã¨ãã
# - ã平家ã¹ãã¼ãªã¼ããã
Shortcut to C<< Acme::Lou->new->translate() >>.
=head1 OBSOLETED FUNCTION
To keep this module working, following functions are obsoleted. sorry.
=over
=item * html input/output
=back
=head1 AUTHOR
Naoki Tomita E<lt>tomita@cpan.orgE<gt>
=head1 SEE ALSO
L<https://lou5.jp/>
L<http://taku910.github.io/mecab/>
Special thanks to Taku Kudo
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=for stopwords lou ohshiba unicode html
=cut
( run in 0.593 second using v1.01-cache-2.11-cpan-4e7a2411597 )