Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (31 sloc) 1.197 kb

NAME

App::GlitchIME - Japanese translation with Google translation API

SYNOPSIS

use App::GlitchIME;

binmode STDOUT, ":utf8";

my $ime = App::GlitchIME->new($japanse_sentence);

for (1..10) { print $ime->generate, "\n"; }

DESCRIPTION

App::GlitchIME is perl version of glitch-ime(written in Ruby).

METHODS

  • my $ime = App::GlitchIME->new($text)

This method creates new instance of App::GlitchIME

$text argument should be Japanese HIRAGANA. And it should be octet stream.

  • my $str = $img->generate();

This method returns string which is concatenated candidate of each segment. Choice of candidate is random. So you may get another string when you call this method next time.

AUTHOR

Syohei YOSHIDA syohex@gmail.com

COPYRIGHT

Copyright 2011- Syohei YOSHIDA

LICENSE

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

SEE ALSO

Original code in Ruby language by hitode909 http://d.hatena.ne.jp/hitode909/20110221.

Guide of translation API http://www.google.co.jp/intl/ja/ime/cgiapi.html

Jump to Line
Something went wrong with that request. Please try again.