PageRenderTime 12ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/lib/DDG/Spice/Dictionary/Reference.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 16 lines | 11 code | 5 blank | 0 comment | 1 complexity | a5c8005f64a6c00dbe3bd87f69e63683 MD5 | raw file
 1package DDG::Spice::Dictionary::Reference;
 2
 3use DDG::Spice;
 4
 5attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
 6            twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
 7
 8spice to => 'http://api.wordnik.com/v4/word.json/$1/definitions?includeRelated=true&includeTags=true&limit=3&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
 9triggers startend => "///***never trigger***///";
10
11handle query_lc => sub {
12    return $_ if $_;
13    return;
14};
15
161;