/lib/DDG/Spice/Dictionary/Hyphenation.pm
Perl | 16 lines | 11 code | 5 blank | 0 comment | 1 complexity | 3e90074b5eca3bf007499624232761b2 MD5 | raw file
- package DDG::Spice::Dictionary::Hyphenation;
- 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/hyphenation?includeRelated=true&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
- triggers startend => "///***never trigger***///";
- handle query_lc => sub {
- return $_ if $_;
- return;
- };
- 1;