PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/duckduckgo/zeroclickinfo-spice
Perl | 20 lines | 13 code | 6 blank | 1 comment | 1 complexity | 46fb99b2ef3db285682bb29b790ccc8c MD5 | raw file
 1package DDG::Spice::Dictionary::Reference;
 2# ABSTRACT: Used to get the definition of the singular form for plural queries
 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/definitions?includeRelated=true&includeTags=true&limit=3&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11spice proxy_cache_valid => '200 30d';
12
13triggers startend => "///***never trigger***///";
14
15handle query_lc => sub {
16    return $_ if $_;
17    return;
18};
19
201;