Go to file
hunterlang aed36f5065 added passphrase goodie using diceware 2011-10-04 23:05:45 -04:00
abc Only alpha characters allow between OR now. 2011-08-11 17:34:20 -04:00
dice Failed to commit the with roll and throw as possible actions. 2011-08-11 17:00:35 -04:00
guid Cleanup of formatting in guid/goodie.pl 2011-08-09 18:21:10 -04:00
passphrase added passphrase goodie using diceware 2011-10-04 23:05:45 -04:00
private_network Added Private Network answer snippet 2011-09-22 13:10:14 -04:00
public_dns Removing the markdown source. 2011-08-14 14:25:06 -04:00
README.md Edited README.md via GitHub 2011-08-09 14:44:22 -03:00

README.md

DuckDuckGo ZeroClickInfo Goodies

About

See https://github.com/duckduckgo/duckduckgo/wiki for a general overview on contributing to DuckDuckGo.

This repository is for contributing goodies, special tools that reveal instant answers, e.g. calculations or throwing dice.

Contributing

This repository is organized by type of content, each with its own directory. Some of those projects are in use on the live system, and some are still in development.

Each directory has a Perl script called goodie.pl, which is an example of that goodie.

See the guid directory for a working example. Within the file, a few things are happening, and you can look at the comments in that example for details. But here is an overview:

  1. The goodie needs to know when to be called. In the example, this is done via a keyword hash, but could also easily be a regular expression. If it is the latter, we need to watch out for false positives and speed.

  2. Once called, it formulates the answer. This could vary slightly depending on input.

  3. The answer_results and answer_type variables are set.