Support of tone and writing_style for French, Italian, Portuguese and Spanish for Rephrase is still missing in the DeepL API Pro
The support of tone and writing_style for French, Italian, Portuguese and Spanish is already present in your DeepL Write Web Interface https://www.deepl.com/en/write
but it is still missing for the Rephrase feature in the DeepL API Pro (only English UK, English US and German are actually supported). It would be very helfpul if you could implement it soon. Best regards. Regis Barbier
What do you mean by missing? I can use for example spanish in the API:
curl -v -X POST https://api.deepl.com/v2/write/rephrase \
--header "Content-Type: application/json" \
--header "Authorization: DeepL-Auth-Key KEY" \
--data "{
\"text\": [\"Hola qe tal\"], \"source_lang\": \"ES\", \"target_lang\":\"ES\"
}"
{"improvements":[{"text":"Hola, ¿qué tal?","detected_source_language":"es","target_language":"es"}]}
The CLs don't have types for the write languages, so Im not sure what would be missing?
I mean there that no text improvement will be delivered for French, Italian, Portuguese and Spanish because the parameter tone or writing_style are only supported for English UK, English US and German.
Then you will only get the input sentence wihout any improvement.
If you send your request with 'tone'='friendly' or any allowed value (the same for the parameter 'writing_style', you get then the following error message: { "message": "Bad request. Reason: Language Spanish does not support setting a tone" }
On your Deepl Write Web interface those languages ( French, Italian, Portuguese and Spanish) are fully supported and due to this I sent my request.
Ah, thank you. I will look into it :)
@JanEbbing Is a new release containing the support of those languages (French, Italian, Portuguese and Spanish) for tone and writing_style already planned? Thank you very much in advance for your reply and your support
Sorry for the delay here. We will probably only be able to get to this in December
@JanEbbing Is a new release containing the support of those languages (French, Italian, Portuguese and Spanish) for tone and writing_style already planned before the winter break? Thank you very much in advance for your reply and your support. Best regards
Sorry for the delay here. We will probably only be able to get to this in December
@JanEbbing I tested just now if the support of those languages (French, Italian, Portuguese and Spanish) for tone and writing_style was already implemented in your DeepL API Pro:
{{baseUrl}}/v2/write/rephrase
Body: { "text": [ "Hola qe tal" ], "source_lang": "ES", "target_lang": "ES", "writing_style": "default", "tone": "friendly" }
Still getting the same error message: { "message": "Bad request. Reason: Language Spanish does not support setting a tone" }
Do you know when the DeepL API Pro will support those features tone and writing_style for French, Italian, Portuguese and Spanish? Thank you very much in advance for your reply and your support. Best regards and best wishes for the new year!
@JanEbbing Sorry that I ask again but I really need this information. Is a new release containing the support of those languages (French, Italian, Portuguese and Spanish) for tone and writing_style already planned before the winter break? Thank you very much in advance for your reply and your support. Best regards