terryyin / terryyin/translate-python

Wrong translation from Chinese to Japanese

Open
#107 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
759
Forks
152
PR merge metrics
No merged PRs in 30d

Description

Python 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from translate import Translator as tr
>>> t = tr(from_lang="zh", to_lang="ja")
>>> t.translate("你好")
'亲爱的 我想你了'
>>>

你好 in Chinese means "hello" here while 亲爱的 我想你了 is actually in Chinese instead of Japanese and it means "My dear I'm missing you".

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Python 3.10.5 example using translate.Translator with from_lang="zh" and to_lang="ja". Trace the translation request and response handling to determine whether the incorrect Chinese result comes from the service response or the package, then verify that the same input produces Japanese output when fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.