use Yandex::Dictionary; use utf8; my $dic = Yandex::Dictionary->new; $dic->set_key('yandex_key'); $dic->set_text('time'); $dic->set_lang('en-tr'); #$dic->set_format('xml'); print $dic->get_result(), "\n";
The API is used for getting detailed dictionary entries from the static Yandex.Dictionary. Unlike conventional translation dictionaries, it is compiled automatically using the technologies at the root of the Yandex machine translation system. Yandex.Dictionary entries include the word’s part of speech, and translations are grouped with examples. For English words, the transcription is provided. The service supports a total of 17 language pairs.