PageRenderTime 0ms CodeModel.GetById 3ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Dictionary/Pronunciation.pm

http://github.com/duckduckgo/zeroclickinfo-spice
Perl | 18 lines | 12 code | 5 blank | 1 comment | 1 complexity | a7d77c96fcac3f6652bb3ec34c932f24 MD5 | raw file
 1package DDG::Spice::Dictionary::Pronunciation;
 2# ABSTRACT: Get pronounciation information of a word
 3
 4use strict;
 5use DDG::Spice;
 6
 7attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
 8            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
 9
10spice to => 'http://api.wordnik.com/v4/word.json/$1/pronunciations?limit=1&useCanonical=false&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11triggers any => "///***never_trigger***///";
12
13handle remainder => sub {
14    return $_ if $_;
15    return;
16};
17
181;