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

When I compared this translation with Google Translate, I got a different result. #54

Open
thawon opened this issue Jan 30, 2025 · 2 comments

Comments

@thawon
Copy link

thawon commented Jan 30, 2025

Hi there!

We've noticed some users mentioning a recent dip in translation quality, and I've done some testing myself, comparing your library's results with Google Translate. I've found some discrepancies, with Google Translate sometimes performing better. Any insights you could share on why this might be happening would be greatly appreciated!

Regards,
Thawon Uttamavanit

@iamtraction
Copy link
Owner

Can you share the texts you tried and their results? Can you also share a code snippet so that I can see how you're using the library?

@thawon
Copy link
Author

thawon commented Jan 31, 2025

Thank you for the reply.

Here is the text in Chinese:
"m2 正向電磁接觸器下方的過載電驛 r相欠相 已做更換(跟污水廠借了一顆)||m2 逆向電磁接觸器彈簧卡卡 s相沒有吸到很裡面 重複測試恢復正常之後 堪用||目前已投入使用"

The result we have from your library:
"โพสต์ไฟฟ้าของ M2 ที่อยู่ทางด้านขวาของคอนแทคเลนส์แม่เหล็กไฟฟ้าถูกแทนที่ (ยืมมาด้วยโรงงานน้ำเสีย) เข้าใช้งาน"

Google translate's result:
"รีเลย์โอเวอร์โหลดใต้คอนแทคเตอร์แม่เหล็กไฟฟ้าแบบหน้า M2 ได้รับการเปลี่ยนใหม่แล้ว (ยืมมาจากโรงบำบัดน้ำเสีย) สปริงของคอนแทคเตอร์แม่เหล็กไฟฟ้าแบบกลับ M2 ติดขัด และเฟส S ไม่ถูกดูดเข้าไปลึกมาก หลังจากทดสอบซ้ำแล้วซ้ำเล่า ก็ถือว่าปกติ ใช้||ใช้อยู่ในปัจจุบัน"

You are not probably speaking Thai but the discrepancies can be found in many cases.
Here is another example:

Text: "How was work today?"
The result from your library:
"วันนี้ทำงานอย่างไร?"
Google Translate's result:
"วันนี้งานเป็นอย่างไรบ้าง?"

Here the code I use to test. It is copied from the npm:
https://www.npmjs.com/package/@iamtraction/google-translate

const translate = require('@iamtraction/google-translate');
translate('How was work today?', { to: 'th' }).then(res => {
console.log(res.text);
}).catch(err => {
console.error(err);
});

The good results are the ones that comes from Google Translate. The incorrect translations are really off, and occasionally they don't make sense. I actually have tried the same examples on another NodeJS library named "@vitalets/google-translate-api". The results are identical to yours. I think and according to our users, the discrepancies only started to occur a few days ago.

Regards,
Thawon Uttamavanit

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