Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

US and GB english translation behavior #21

Closed
dombajova opened this issue May 29, 2024 · 2 comments
Closed

US and GB english translation behavior #21

dombajova opened this issue May 29, 2024 · 2 comments

Comments

@dombajova
Copy link

Hi, I have used translation from English to US english with the following results:

English
Target text: Our neighbours are our best friends and we work in the same organisation.

EN-US
Translated text: Our neighbours are our best friends and we work in the same organisation.

I would, however, expect the result to reflect the particularities of American English so Our neighbors are our best friends and we work in the same organization.
Is this not supported scenario at the moment? Thank you for your answer

@JanEbbing JanEbbing transferred this issue from DeepLcom/deepl-python May 29, 2024
@JanEbbing
Copy link
Member

Hi, thanks for your report! Please note that translation from british to american english (and vice versa) is currently not supported, the API will just return your input text. If you start in a language other than english, it will correctly spell neighbor/neighbour according to the variant.

For example German to BE:

Unsere Nachbarn sind unsere besten Freunde und wir arbeiten in der gleichen Organisation. => Our neighbours are our best friends and we work in the same organisation.

German to AE:

Unsere Nachbarn sind unsere besten Freunde und wir arbeiten in der gleichen Organisation. => Our neighbors are our best friends and we work in the same organization.

For Spanish to BE:

Nuestros vecinos son nuestros mejores amigos y trabajamos en la misma organización. => Our neighbours are our best friends and we work in the same organisation.

Spanish to AE:

Nuestros vecinos son nuestros mejores amigos y trabajamos en la misma organización. => Our neighbors are our best friends and we work in the same organization.

If you only have the source text available in English, a workaround would be to use a pivot language (ideally a high-resource one, for example German or Spanish), translate into that one first, and then back into the english variant of your choosing. This sometimes leads to suboptimal translations unfortunately, but works pretty well.

@JanEbbing
Copy link
Member

Sorry just to clarify, this not only applies to english but to all languages with variant (currently English and Portuguese). You cannot translate from English/Portuguese to one of the variants of the same language (English to PT-PT/PT-BR or PT to EN-US/EN-GB would work obviously).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants