duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs
https://duckduckhack.com/
Other
548 stars 942 forks source link

CouponMountain false positive "chic" and "chic fil a" #287

Closed zekiel closed 10 years ago

zekiel commented 10 years ago

https://duckduckgo.com/?q=chic+fil+a+coupons

"chic fil a coupons" improperly displays coupons containing the word, "chic"

moollaza commented 10 years ago

Looks to be fixed for now: https://duckduckgo.com/?q=chic+fil+a+coupons

The larger issue is ensuring relevancy for queries with many short words. In this case DDG.isRelevant() is probably throwing out "fil" and "a" as irrelevant, and so its making sure coupons have the word "chic" in them.

In these cases we need to calculate the average word length and use that to boost the importance of shorter words.

moollaza commented 10 years ago

Portion of this might need to be completed internally if DDG.isRelevant() needs to be modified.

jagtalon commented 10 years ago

This refers to the old Spice API. This is a duplicate of https://github.com/duckduckgo/zeroclickinfo-spice/issues/896