PageRenderTime 1ms CodeModel.GetById 3ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Dictionary/Hyphenation.pm

http://github.com/duckduckgo/zeroclickinfo-spice
Perl | 18 lines | 12 code | 5 blank | 1 comment | 1 complexity | 7a9e42756e702921f4e092ad76428ee8 MD5 | raw file
 1package DDG::Spice::Dictionary::Hyphenation;
 2# ABSTRACT: Get hyphenation of a word
 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/hyphenation?includeRelated=true&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11triggers startend => "///***never trigger***///";
12
13handle query_lc => sub {
14    return $_ if $_;
15    return;
16};
17
181;