/lib/DDG/Spice/Dictionary/Reference.pm
Perl | 16 lines | 11 code | 5 blank | 0 comment | 1 complexity | a5c8005f64a6c00dbe3bd87f69e63683 MD5 | raw file
- package DDG::Spice::Dictionary::Reference;
- use DDG::Spice;
- attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
- twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
- spice 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}}';
- triggers startend => "///***never trigger***///";
- handle query_lc => sub {
- return $_ if $_;
- return;
- };
- 1;