02-11-2025, 07:24 PM
02-11-2025, 09:30 PM
LitDev,
Great if you can do it! Maybe you should rename your extension to "LitDev Basic".
JR
Great if you can do it! Maybe you should rename your extension to "LitDev Basic".
JR
02-12-2025, 09:22 PM
Hi,
Uploaded a new beta 1.2.29.16 version with this. The French and Spanish variants don't seem to work (depreciated from intellisense for now) - also added to LDBasic as suggested.
Hope this works for a while!
It looks like this one actually scrapes the definitions from https://en.wiktionary.org/wiki.
Uploaded a new beta 1.2.29.16 version with this. The French and Spanish variants don't seem to work (depreciated from intellisense for now) - also added to LDBasic as suggested.
Hope this works for a while!
It looks like this one actually scrapes the definitions from https://en.wiktionary.org/wiki.
02-13-2025, 10:39 AM
Hi Litdev,
thanks for creating the dictionary function.
The error output goes to a text window, however.
"date" generates the following message:
LDDictionary.GetDefinition : Additional text encountered after finished reading JSON content: ,. Path '', line 1, position 874.
Unknown or incorrect words like "distroy" result in (404)
thanks for creating the dictionary function.
The error output goes to a text window, however.
"date" generates the following message:
LDDictionary.GetDefinition : Additional text encountered after finished reading JSON content: ,. Path '', line 1, position 874.
Unknown or incorrect words like "distroy" result in (404)
02-13-2025, 10:50 AM
Scout,
Thanks for reporting - my tests were OK, I used the word "world".
The problems is that there is no definition of the API Json returned, so I just assumed the format would be similar for different words - unfortunately not. It's hard to write a reader of a syntax that changes with no proper definition or API. I will have a look at this example and see what is returned from the call and what in the Json may be different.
We can see the returned Json with a direct call to a browser:
https://api.dictionaryapi.dev/api/v2/entries/uk/date
The issue then seems apparent!
To turn off erro rmessages, you can use LDUtilities.ShowErrors = "False" (not implemented in LDBasic).
Of the other suggestions I would go for the Wordnik one after looking at the complexity/restrictions of the ones listed. Of course you can get your own free API key and use LDNetwork.SendWebRequest and parse the result - maybe a fun challenge in itself. But if LDDictrionary is something that is important for some existing users then I will research more test Wordnik.
Thanks for reporting - my tests were OK, I used the word "world".
The problems is that there is no definition of the API Json returned, so I just assumed the format would be similar for different words - unfortunately not. It's hard to write a reader of a syntax that changes with no proper definition or API. I will have a look at this example and see what is returned from the call and what in the Json may be different.
We can see the returned Json with a direct call to a browser:
https://api.dictionaryapi.dev/api/v2/entries/uk/date
The issue then seems apparent!
To turn off erro rmessages, you can use LDUtilities.ShowErrors = "False" (not implemented in LDBasic).
Of the other suggestions I would go for the Wordnik one after looking at the complexity/restrictions of the ones listed. Of course you can get your own free API key and use LDNetwork.SendWebRequest and parse the result - maybe a fun challenge in itself. But if LDDictrionary is something that is important for some existing users then I will research more test Wordnik.
02-13-2025, 01:39 PM
https://free-apis.github.io/#/categories/Dictionaries
many free apis from this site i am using in ZSApi extension will be released soon.
also try contain audio also : https://dictionaryapi.dev/
also show if word dont exist : https://api.dictionaryapi.dev/api/v2/entries/en/distroy
many free apis from this site i am using in ZSApi extension will be released soon.
also try contain audio also : https://dictionaryapi.dev/
also show if word dont exist : https://api.dictionaryapi.dev/api/v2/entries/en/distroy
02-13-2025, 01:55 PM
ZS, This is the one I used (api.dictionaryapi.dev - free no signup), just didn't realise lots of words 'don't exist' with it - after actually looking at the other suggestions in more detail some have very limited free trials (1000 words total), some have restrictive signup requirements etc, as I say I think the Worknik one looks best with simple signup, fairly simple Json use with access to good dictionary sources and free non commercial use 100 word/hour.
02-13-2025, 02:01 PM
wordnik isnt public api
02-13-2025, 02:31 PM
(02-13-2025, 02:01 PM)z-s Wrote: [ -> ]wordnik isnt public api
Not sure exactly what you mean, you do have to sign up with email address, but as far as I can see (without actually signing up) you will then get an account with API key that can be used in limited non commercial apps for free.
02-13-2025, 02:36 PM
ok got it