duckduckgo / zeroclickinfo-goodies

DuckDuckGo Instant Answers based on Perl & JavaScript
https://duckduckhack.com/
Other
980 stars 1.76k forks source link

Create Open Source Lorem Ipsum IA #958

Closed moollaza closed 8 years ago

moollaza commented 9 years ago

We currently have an internal (legacy) Lorem Ipsum IA: https://duckduckgo.com/?q=lorem+ipsum

There's no need for it to be internal and closed source. We should make a new one that outputs the same text.

If we really want, allowing for a specific length or # of paragraphs would be helpful too. There may even be an API for this and so it could be a Spice!

moollaza commented 9 years ago

Oh and a user on the Community Platform has asked for lipsum to be a trigger, so let's do that as well!

javathunderman commented 9 years ago

@moollaza I saw that, and I couldn't find this Lorem Ipsum code anywhere in any of the repos....until I had someone reply to me. :)

Anyway, this sounds good. Is it just going to be a static passage with the same content, or is it randomly generated?

moollaza commented 9 years ago

The current version uses static text, but if we could find a generator (there's probably a CPAN Module?) it would be nicer

moollaza commented 9 years ago

yup, https://metacpan.org/pod/Text::Lorem

javathunderman commented 9 years ago

@moollaza Will look into this, but I think it would be better to have #960 taken care of first.

jee1mr commented 9 years ago

@moollaza @javathunderman Can I take this up? BTW there's an API too. (http://loripsum.net/api)

MrChrisW commented 9 years ago

@jee1mr Go for it :cake: Feel free to make a new PR when you're ready.

The API looks good, will need to use the plaintext parmameter so we don't get any HTML returned.

jee1mr commented 9 years ago

@MrChrisW But it doesn't return JSON result. Is that fine?

MrChrisW commented 9 years ago

@jee1mr Correct, it will need to be a JSON response. Luckily there's no shortage of Lipsum Lorem API's around :laughing:

This one looks good: http://www.filltext.com/?rows=1&words={lorem|300}&callback=ddg_spice_lipsumlorem

jagtalon commented 9 years ago

But for now ... https://duckduckgo.com/?q=bacon+ipsum&t=ffab&ia=baconipsum :)

javathunderman commented 9 years ago

@moollaza Should we close this and make a new issue on the Spice repo?

moollaza commented 9 years ago

@javathunderman sure, unless @jee1mr is still interested in doing it?

jee1mr commented 9 years ago

@moollaza @javathunderman Need help! https://github.com/duckduckgo/zeroclickinfo-goodies/pull/1005

mintsoft commented 9 years ago

@jee1mr Can I help?

moollaza commented 8 years ago

Should be fixed in #1984

GuiltyDolphin commented 8 years ago

@moollaza Oooh, I didn't see this. I'll add a Fixes X to the PR.