duckduckgo / zeroclickinfo-spice

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

AlternativeTo: Listen for license type in query #2860

Closed Troupal closed 7 years ago

Troupal commented 8 years ago

Hello dear devs!

I think that's will be a good and great idea that we can make a search like that:

only open source alternative to google translate

And the DuckDuckHack to make result for only open source alternative.

So think you for this wonderful DuckDuckHack!!!


PS: Sorry for my English, I'm French and I don't speak very well English… ^^'


IA Page: http://duck.co/ia/view/alternative_to Maintainer: @vikashvverma

vikashvverma commented 8 years ago

@Troupal I don't think many people will type such a long phrase. The IA API does give us the license so we can filter out based on license.

@duckduckgo/duckduckhack-contributors any input regarding effectiveness of this trigger

Gaurav2728 commented 8 years ago

@vikashvverma new users often search using long keywords, they have not familar with how search engine work. @Troupal request make sence.

tagawa commented 8 years ago

Bonjour @Troupal! Merci beaucoup pour la suggestion. We can probably listen for keywords such as "open source", "commercial" or "freemium" in the query using regex, so it wouldn't matter if the query was a long or short phrase. If the API supports this, as @vikashvverma says, then your suggestion seems possible - and a good idea!

sahildua2305 commented 8 years ago

Great idea!

I can take it up, if @vikashvverma is not in mood of working on this :stuck_out_tongue_winking_eye:

Troupal commented 8 years ago

Thank you for your reactivity! @vikashvverma I think that this option is important because every time I search with "Alternative to", I don't used the Hack because I'm forced to go to the Web site to search with "only open-source" option. So, I think it's important. Thank you @tagawa for your french answer! :-D @sahildua2305 , I hope it's not too complicate to do this, however good luck for the job! ^^

tagawa commented 8 years ago

@sahildua2305 Thanks for the offer! I think @vikashvverma is pretty busy at the moment so I've assigned it to you to have a go.

sahildua2305 commented 8 years ago

@vikashvverma I just checked the functionality of the IA in a bit detail and looks like it already listens for the license type in query and filters out the results based on that license type.

For example - this generates results only for open source alternatives.

Not sure what needs to be done regarding this issue :confused: :question:

mylainos commented 8 years ago

Maybe put the license at the bottom of the items/cards ?

sahildua2305 commented 8 years ago

Good idea. I think it will make sense to put the license only when the search query is generic. Otherwise it would be obvious that the results must be according to the search query.

mylainos commented 8 years ago

I'm not sure. I prefer if it's explicit. (And it might be a good idea to put the number of likes, but that's for an other issue I guess)

philipmiesbauer commented 8 years ago

I think it is better to be explicit as well. Otherwise people might not understand why it is shown sometimes and other times not.

On Mon, Jul 11, 2016, 23:06 Hugo Thiessard notifications@github.com wrote:

I'm not sure. I prefer if it's explicit. (And it might be a good idea to put the number of likes, but that's for an other issue I guess)

— You are receiving this because you are on a team that was mentioned. Reply to this email directly, view it on GitHub https://github.com/duckduckgo/zeroclickinfo-spice/issues/2860#issuecomment-231880318, or mute the thread https://github.com/notifications/unsubscribe/ANKFpX-DITL0daO818DtoWRbani5WbMMks5qUr5ygaJpZM4JBcVq .

sahildua2305 commented 8 years ago

Great! I will create a PR soon for mentioning the license type explicitly in the results.

sahildua2305 commented 8 years ago

@vikashvverma the issue states that the IA should listen to license type in the query. Was that already handled in some PR? I think this issue needs to be closed and it's sort of misleading. Your input requested.

vikashvverma commented 8 years ago

@sahildua2305 @Troupal Currently this IA is showing result based on your query. It shows only open source if you add free or open source in search query.

screen shot 2016-07-20 at 9 05 59 am screen shot 2016-07-20 at 9 05 49 am

However it needs some regex to handle query like only open source alternative to google translate

@sahildua2305 You can try adding regex to handle this.

Also there is one more issue https://github.com/duckduckgo/zeroclickinfo-spice/issues/2631 open with this IA related to triggers

Troupal commented 8 years ago

YEAH!!! That's perfect!!! The query _open source alternative to google translate_ work perfectly! Very nice job'! And thank you all for your work ans answers.

moollaza commented 7 years ago

IA is no longer online.

Troupal commented 6 years ago

@moollaza Yeah, it's too sad…

moollaza commented 6 years ago

I checked that this IA still works correctly, and I've re-enabled it. Should be online shortly.

Troupal commented 6 years ago

@moollaza Thank's ! It's perfect.