/lib/DDG/Spice/Dictionary/Hyphenation.pm
Perl | 18 lines | 12 code | 5 blank | 1 comment | 1 complexity | 7a9e42756e702921f4e092ad76428ee8 MD5 | raw file
Possible License(s): Apache-2.0
- package DDG::Spice::Dictionary::Hyphenation;
- # ABSTRACT: Get hyphenation of a word
- 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/hyphenation?includeRelated=true&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
- triggers startend => "///***never trigger***///";
- handle query_lc => sub {
- return $_ if $_;
- return;
- };
- 1;