Random words query

203 visningar
Hoppa till det första olästa meddelandet

Bryant Sullivan

oläst,
28 juli 2020 02:42:262020-07-28
till Wordnik API
When I call the query without the library my url looks like:

https://api.wordnik.com/v4/words.json/randomWords?hasDictionaryDef=true&includePartOfSpeech=noun-singular&excludePartOfSpeech=verb,adjective,adverb,preposition,proper-noun&minCorpusCount=10000&maxCorpusCount=-1&minDictionaryCount=20&maxDictionaryCount=-1&minLength=0&maxLength=-1&limit=5&api_key=MY_KEY

I need a list of common words, ultimately 5 of each nouns, verbs, adverbs, prepositoins, adjectives. So here, I'm trying to get just nouns and when I use this as written I get:

trial1: b'[{"id":0,"word":"incapable"},{"id":0,"word":"pose"},{"id":0,"word":"courtesy"},{"id":0,"word":"equal"},{"id":0,"word":"dragon"}]'
trial2: b'[{"id":0,"word":"topping"},{"id":0,"word":"swallow"},{"id":0,"word":"burden"},{"id":0,"word":"residence"},{"id":0,"word":"steven"}]'
trial3" b'[{"id":0,"word":"third"},{"id":0,"word":"stray"},{"id":0,"word":"consolidation"},{"id":0,"word":"berry"},{"id":0,"word":"irregular"}]'
trial4: b'[{"id":0,"word":"sculpture"},{"id":0,"word":"wear"},{"id":0,"word":"substitute"},{"id":0,"word":"awkward"},{"id":0,"word":"beast"}]' 
trial5: b'[{"id":0,"word":"fare"},{"id":0,"word":"best"},{"id":0,"word":"lyric"},{"id":0,"word":"hatch"},{"id":0,"word":"calm"}]'



It doesn't seem to matter if I use the excludePartOfSpeech option at all. Nor does it seem to matter if it's written as is or as "verb%2Cadjective%2Cadverb%2Cpreposition%2Cproper-noun". I was just wondering if there was something about the way I wrote it that was incorrect or if I'm thinking about this wrong. I will continue to poke around the forum and see if I can find an answer. The couple that I did come across were older and they don't seem to be relevant anymore.

Thank you so much.

Erin McKean

oläst,
28 juli 2020 10:58:452020-07-28
till wordn...@googlegroups.com
Hi Bryant!

Unfortunately, we've had to temporarily turn off the part of speech parameter to handle a bug. I hope that we will have it working again soon.

I apologize for the hassle!

Yours,

Erin
---------------------
Erin McKean
Wordnik
@emckean/@wordnik/@wordnikapi
Wordnik is a 501(c)3 nonprofit organization
The Wordnik mission: every English word, available to everyone, everywhere

--
You received this message because you are subscribed to the Google Groups "Wordnik API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wordnik-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wordnik-api/9f4d44ad-255d-4bb2-a12a-b73783eaf9cao%40googlegroups.com.

Bryant Sullivan

oläst,
28 juli 2020 15:42:362020-07-28
till wordn...@googlegroups.com
ah, I see. If I could ask, and forgive me if this is already answered somewhere else but, 

if I needed a list of random nouns, is it necessary then to use the exclude parameter to exclude all other options?



--

Jarred Baird

oläst,
12 maj 2021 14:24:182021-05-12
till Wordnik API
has the include/excludePartOfSpeech parameter been enabled again?

Erin McKean

oläst,
12 maj 2021 14:30:192021-05-12
till wordn...@googlegroups.com
Sadly, not yet. Soon, I hope!

Thank you for your patience!

Erin

Jarred Baird

oläst,
12 maj 2021 14:45:092021-05-12
till Wordnik API
It seems it has been disabled for about 5 years now. Is there anything I can do to fix it?

Martin Gregory

oläst,
29 maj 2022 08:30:112022-05-29
till Wordnik API
I'd love to jump in and help fix this too.

Is there any prognosis?

It seems as if there is a curse across all word-server APIs that disables random-part-of-speech generation!

Erin McKean

oläst,
10 juni 2022 11:13:132022-06-10
till wordn...@googlegroups.com
Hi folks! So sorry for the delayed reply, I moved a few weeks ago and am still catching up!

The good news is that I have a prototype that we're testing and I hope we'll have something available to the beta testers list in the next couple of months (if you're not on the beta list, you can join here: http://eepurl.com/bPCg0D).

If you have experience with Redis and/or HapiJS and would like to volunteer to help with code review, please let me know! We can offer a Wordnik t-shirt as a thank-you. :) 

Unfortunately, this particular code is not likely to be open-sourced in the near future. Since the API is the core service that supports our nonprofit work, we haven't been able to figure out a way to open source our code and continue to generate the revenue we need to keep the lights on. :)

Again, thank you for your patience!

Erin
---------------------
Erin McKean
Wordnik
@emckean/@wordnik/@wordnikapi
Wordnik is a 501(c)3 nonprofit organization
The Wordnik mission: every English word, available to everyone, everywhere

Brian Berns

oläst,
14 maj 2023 17:38:272023-05-14
till Wordnik API
It seems that parts of speech are still not working when fetching a random word. Is there any chance of a fix?
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden