* POTUS: Adding failing test for overtrigger * POTUS: the previous || $prez_count meant that it defaulted to the current president if it didn't recognise the number; hence why it was showing so many false positives * POTUS: Now with stricter handling on the $num we can trust the validation later on to keep us safe from overtriggering * POTUS: basic queries that really should work! * POTUS: Switching to using a guard regex to match things rather than using replacements * POTUS: Guard regex now protects the query space. and "was" is used to imply the previous president (currently obama) * POTUS: switched to query_lc and implementing both a guard regex and a replacement for the triggers so that the code below behaves as if it is remainder =>, except that this doesn't erroneously replace "president-elect of the us" with "" * POTUS: We don't need $rem |
||
---|---|---|
.github | ||
lib/DDG | ||
share/goodie | ||
t | ||
template | ||
.gitignore | ||
.travis.yml | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
dist.ini |
README.md
Welcome to DuckDuckHack!
We're a community of open source developers from around the world, contributing code to improve the DuckDuckGo search engine.
The Programming Mission
We want every programming search to have great results, providing the information you need instantly. The Programming Mission empowers the community to create Instant Answers for reference, libraries, help, and tools.
For now, we are only accepting Pull Requests and Issues related to the Programming Mission.
How to contribute
- Create new Goodie Instant Answers, and improve existing ones
- Note: Goodies are written in Perl (back-end) and JavaScript (front-end). They can also typically use CSS, and Handlebars Templates.
- Visit DuckDuckHack to learn more about the Programming Mission, and how you can help!
What are Goodie Instant Answers?
Goodies do not retrieve data from a third party API. Goodies provide their results entirely through server-side code. They may use a static data file stored on DuckDuckGo's server, but they do not call external resources.
Example: JavaScript Minifier Goodie
Resources
- Join the DuckDuckHack Slack channel to ask questions
- Join the DuckDuckHack Forum to discuss project planning and Instant Answer metrics
- Read the Goodie documentation for technical help
- View the list of all live Goodie Instant Answers to see more examples