PageRenderTime 46ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/ehsan/zeroclickinfo-spice
Perl | 16 lines | 11 code | 5 blank | 0 comment | 1 complexity | 3e90074b5eca3bf007499624232761b2 MD5 | raw file
  1. package DDG::Spice::Dictionary::Hyphenation;
  2. use DDG::Spice;
  3. attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
  4. twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
  5. spice to => 'http://api.wordnik.com/v4/word.json/$1/hyphenation?includeRelated=true&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
  6. triggers startend => "///***never trigger***///";
  7. handle query_lc => sub {
  8. return $_ if $_;
  9. return;
  10. };
  11. 1;