Go to file
Rob Emery b6e1bd858e Conversions: Case sensitive Units/Symbol handling (#4021)
* NumbersRole: Despite the role being case insensitive, the number_style_regex isn't! Adding failing test

* NumbersRole: Fixing indentation

* Conversions: Adding tests around implicit case insensitivity in current implementation

* Conversions: Moved all case insensitive behaviour into the handle query so it's explicit rather than relying on query_lc to do the work for us

* Conversions: Adding symbol definitions for case sensitive handling

* Conversions: Fixing markup

* Conversions: UTF8 with BOM on ratios and adding symbol as a trigger

* Conversions: Symbol is now used (case sensitive) to match for factors

* Conversions: The test 'BTU to KwH' should fail (this isn't a unit), however it was causing a division by zero as get_matches wasn't finding a match and this condition wasn't handled correctly

* Conversions: Typo! KwH shouldn't trigger

* Conversions: Tests involving symbols now need to be correct according to SI

* Conversions: Tests around "oz" that should be interpreted as fl oz if the answer should unambiguously be a volume

* Conversions: Will handle ambiguity around oz for more units

* Conversions: Uncommenting tests around digital storage units and fixing them so they're actually correct
2017-04-05 18:39:19 -04:00
.github Update PULL_REQUEST_TEMPLATE.md 2017-03-13 10:45:21 -04:00
lib/DDG Conversions: Case sensitive Units/Symbol handling (#4021) 2017-04-05 18:39:19 -04:00
share/goodie Conversions: Case sensitive Units/Symbol handling (#4021) 2017-04-05 18:39:19 -04:00
t Conversions: Case sensitive Units/Symbol handling (#4021) 2017-04-05 18:39:19 -04:00
template Merge pull request #3337 from duckduckgo/gd/cheat-sheet-template 2016-07-07 11:34:44 -06:00
.gitignore gitignore metadata 2015-02-12 13:23:57 -05:00
.travis.yml try forcing a single process for readability 2016-03-01 16:41:48 -07:00
CONTRIBUTING.md updated contributing.md 2016-08-30 11:01:49 -04:00
LICENSE Vanilla LICENSE file, no modifications. 2015-01-19 22:30:05 +01:00
README.md REPO: Removed Prog Mission info from README. (#3997) 2017-03-14 15:20:06 -04:00
dist.ini remove line 2016-12-20 13:27:08 -05:00

README.md

Build Status

Welcome to DuckDuckHack!

We're a community of open source developers from around the world, contributing code to improve the DuckDuckGo search engine.

How to contribute

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

javascript minifier search

Resources