/lib/DDG/Spice/Dictionary/Reference.pm
Perl | 20 lines | 13 code | 6 blank | 1 comment | 1 complexity | 46fb99b2ef3db285682bb29b790ccc8c MD5 | raw file
Possible License(s): Apache-2.0
- package DDG::Spice::Dictionary::Reference;
- # ABSTRACT: Used to get the definition of the singular form for plural queries
- use strict;
- 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}}';
- spice proxy_cache_valid => '200 30d';
- triggers startend => "///***never trigger***///";
- handle query_lc => sub {
- return $_ if $_;
- return;
- };
- 1;