Closed yegg closed 8 years ago
Although thesaurus has bad results, the "similar to" spice has much better ones. Perhaps we should deprecate thesaurus and just use the Levelpump API for synonyms?
Maybe choosing one instead of using two APIs is the best option. I guess what's lacking in the Levelpump API is that it doesn't say what part of speech the word belongs too--it's something that I personally find useful.
https://duckduckgo.com/js/spice/thesaurus/friendly/synonym has adjective but https://duckduckgo.com/?q=thesaurus+friendly only shows noun
Would something along these lines work better?
@moollaza Any update on this?
@Jedidiah apologies for the late reply, I hadn't noticed your comment. That approach certainly looks like a step in the right direction!
It seems like there's actually a bug here though because the Thesaurus IA is giving different results for the two queries: https://duckduckgo.com/?q=similar+to+friendly&ia=thesaurus and https://duckduckgo.com/?q=thesaurus+friendly
I think it's probably happening because we're setting different modes for the two queries https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/share/spice/thesaurus/thesaurus.js#L24-L25
Similar to is set to sim
and Thesaurus syn
. I was thinking thesaurus should really show all modes.
I was thinking thesaurus should really show all modes.
@Jedidiah looking at your example, I agree I think that approach would work well.
I don't like copying Google/Bing/etc but it seems like most of them also so antonyms and other meanings when searching for synonyms or thesaurus
I'd be happy to take a look at this if nobody else already is?
https://duckduckgo.com/?q=thesaurus+friendly
vs
http://words.bighugelabs.com/friendly