DeepLcom / deepl-python

Official Python library for the DeepL language translation API.
https://www.deepl.com
MIT License
1.11k stars 80 forks source link

Getting translation alternatives via API #64

Closed nielsrolf closed 1 year ago

nielsrolf commented 1 year ago

deepl.com shows me multiple alternatives for a translation:

Screenshot 2023-01-21 at 15 35 28

Is this feature available via the API? I see that deepl.com sends a jsonrpc to retrieve this, but I couldn't find any docs on how to use this endpoint.

daniel-jones-deepl commented 1 year ago

Hi @nielsrolf Niels, thanks for creating this issue.

No, for business reasons the DeepL API does not provide the alternative translations.

dkrape commented 7 months ago

This is unfortunate. It would be great it this was referenced in the documentation as I spent a bit of time trying to figure out how to return alternate translations.

(For reference: I'm building a flash card app, and wanted to provide suggested translations. Providing a single response is insufficient for words with multiple meanings.)