freeDictionaryAPI icon indicating copy to clipboard operation
freeDictionaryAPI copied to clipboard

Addition of Antonyms to English

Open Trixter9994 opened this issue 3 years ago • 2 comments

The api doesn't appear to return any antonyms in the English language. Since antonyms are returned in every other language I've tested, I don't see why it wouldn't be included in English. I do know that you've mentioned this before here, though you never did clarify what the issue was.

Language: en Version: v2

Trixter9994 avatar Sep 25 '20 18:09 Trixter9994

After doing a bit more research I can see your using this as your url for the English language: https://github.com/meetDeveloper/googleDictionaryAPI/blob/36c1a9dcce6cd25db303078314ea6b5283bc5666/modules/dictionary.js#L45

I originally was going to suggest using https://www.lexico.com/en/synonym/ instead of https://www.lexico.com/en/definition/ before I realized the former did not include the actual definitions of the word, meaning that you would have to call at least two urls to scrape from.

My other idea would be to change websites all together, though that would require rewriting a significant portion of the code you use to scrape said website.

Trixter9994 avatar Sep 25 '20 18:09 Trixter9994

@Trixter9994 This will be soon introduced, yeah as you said it will require calling two separate url and these could decrease performance of API which is why I avoided this till now, I have other ideas though and soon will introduce antonyms to english language.

Thank you using this API, I am sorry for inconvenience and late reply, work life balance is not present currently. :(

meetDeveloper avatar Nov 16 '20 22:11 meetDeveloper