Git Product home page Git Product logo

Comments (9)

moollaza avatar moollaza commented on July 22, 2024

I agree, that looks way better. @jagtalon what do you think?

from zeroclickinfo-spice.

jagtalon avatar jagtalon commented on July 22, 2024

@zekiel @moollaza Ah, I'll see what I can do! Thanks for the report, guys.

from zeroclickinfo-spice.

jagtalon avatar jagtalon commented on July 22, 2024

@zekiel @moollaza I'm getting there. 64d761e

define cacti definition at DuckDuckGo

from zeroclickinfo-spice.

jagtalon avatar jagtalon commented on July 22, 2024

There's this problem of having multiple definitions:

Plural form of <xref>cat</xref>.
Plural form of <xref>category</xref>.

So which definition should we load? Maybe we can do a popover when either "cat" or "category" (that's what Wordnik actually does):

Screenshot from 2013-04-04 16:17:10

from zeroclickinfo-spice.

moollaza avatar moollaza commented on July 22, 2024

@jagtalon I don't quite understand:

  1. Why are multiple definitions a problem? We can put the first in item[0] and perhaps the rest in item[1] or do the top 3 definitions in the matching item array. Or, like the way I hide the items in HackerNews, we can have a list of the definitions which expand when clicked on. Does that make sense?

  2. What word results it both those definitions? If the user searched "cats" and Wordnik returns plural of "cat" and "category" i think it makes sense, at least as a good heuristic, to just show that word that is most similar. Ie "cats" vs "cat" is only a one letter difference.

from zeroclickinfo-spice.

jagtalon avatar jagtalon commented on July 22, 2024

@moollaza totally makes sense. I'll try that one out, too. But I also tried Wordnik's method (thanks to Bootstrap):

https://jagtalon.duckduckgo.com/?q=define+cacti
https://jagtalon.duckduckgo.com/?q=define+chakras
https://jagtalon.duckduckgo.com/?q=define+immense

Selection_035

Might be buggy right now, but tell me what you guys think!

from zeroclickinfo-spice.

moollaza avatar moollaza commented on July 22, 2024

@jagtalon it certainly looks nice but i think the behaviour is unexpected and doesn't keep with how the rest of the plugins react. As I usually say, I would like to maintain uniformity across the plugins. Also I don't want users to get the idea that they can just start grabbing bits and pieces of 3rd party libraries because again that's not something we want. Bootstrap is great and although I use it personally, we haven't used it elsewhere and if we want to incorporate it, that's part of a bigger discussion. For now lets keep the user experience as similar to other plugins as possible. I think we should utilize a multi-item layout like HackerNews does.

from zeroclickinfo-spice.

jagtalon avatar jagtalon commented on July 22, 2024

@zekiel what do you think of this?

Selection_038
Selection_039
Selection_040

You can try it out here: https://jagtalon.duckduckgo.com/?q=define+talons, and you can compare it with this: https://duckduckgo.com/?q=define+talons

from zeroclickinfo-spice.

moollaza avatar moollaza commented on July 22, 2024

@jagtalon is this fix finished?

from zeroclickinfo-spice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.