duckduckgo / zeroclickinfo-spice

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

Random Word: Should show definition for the random word. #703

Closed jagtalon closed 7 years ago

jagtalon commented 10 years ago

The look of the random word instant answer is a bit plain: screen shot 2014-05-09 at 8 45 50 am

A better way of doing this is to get the random word from the endpoint and pass the resulting word to the dictionary IA which looks like this: screen shot 2014-05-09 at 8 48 07 am

In other words, the random word IA should load the dictionary IA. Loading the JS for the dictionary would work like this: https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/share/spice/maps/chains/maps_chains.js#L2


IA Page: https://duck.co/ia/view/rand_word

moollaza commented 10 years ago

@jagtalon @russellholt in this case is there an easy way to preserve the RandomWord Spice's Metabar info, i.e. ensure the tab says "Random Word" rather than "Definition"?

killerfish commented 9 years ago

ia failing on duckpan, complaining on render

moollaza commented 9 years ago

@killerfish can you please elaborate? pic? what's the error?

killerfish commented 9 years ago

awkward cant seem to reproduce it, it was complaining about the render function used in definition, ill ss and paste next time.

killerfish commented 9 years ago

in this case is there an easy way to preserve the RandomWord Spice's Metabar info

Anyway to achieve this guys?

russellholt commented 9 years ago

We don't have a general strategy for embedding other IAs yet.

moollaza commented 7 years ago

This has since been implemented.