PrePAN

Sign in to PrePAN

Yandex::Translate Api for yandex translate

Good

Synopsis

use Yandex::Translate;

$tr = Yandex::Translate->new;

$tr->set_key("yendex_key");
$tr->set_text("In the name of God");
$tr->set_from_lang("en");
$tr->set_to_lang("ar");
print $tr->translate();
print "\n";

$tr = Yandex::Translate->new("yandex_key", "In the name of God", "en", "ar");
print $tr->translate;

Description

Api can used to translate text using Yandex, It can translate 94 languages. Yandex.Translate (previously Yandex.Translation) is a web service provided by Yandex intended for the translation of text or web pagesinto another language. The service uses a self-learning statistical machine translation, developed by Yandex. The system constructs the dictionary of correspondences based on the analysis of millions of translated texts.

Comments

API is redundent in the name: https://pause.perl.org/pause/query?ACTION=pause_namingmodules#Avoid_API_Interface_and_the_like
Thank you, i am going to change it then
In what ways would this module differ from Lingua::Translate::Yandex?
First thing is the name, Yandex::Translate is clear for every user, Second thing is the api key, we must use our api key and not the api of other person, last thing, is the version, the develper used V1 and he have not updated it since 2013.
He did not add user interface interface eg: en,ru, or even zh, he did not detect the local of every users.
And He does not respect https://tech.yandex.com/translate/doc/dg/reference/detect-docpage/

Please sign up to post a review.