Page MenuHomePhabricator

MT thresholds hardcoded in section translation
Closed, ResolvedPublic2 Estimated Story Points

Description

In ContentTranslation/app/src/utils/mtValidator.js

const publishingThreshold = 95;
const warningThreshold = 85;

Event Timeline

Thank you for tagging this task with good first task for Wikimedia newcomers!

Newcomers often may not be aware of things that may seem obvious to seasoned contributors, so please take a moment to reflect on how this task might look to somebody who has never contributed to Wikimedia projects.

A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor, for example it should clearly pointed to the codebase URL and provide clear steps to help a contributor get setup for success. We've included some guidelines at https://phabricator.wikimedia.org/tag/good_first_task/ !

Thank you for helping us drive new contributions to our projects <3

ngkountas moved this task from Backlog to Mobile editor on the SectionTranslation board.

Change #1138994 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] mtValidator: Use MT thresholds from configuration

https://gerrit.wikimedia.org/r/1138994

abi_ set the point value for this task to 1.
abi_ changed the point value for this task from 1 to 2.Apr 25 2025, 11:16 AM

We have very low thresholds (45%) for some wikis (https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/90a6a0078df260d951bcbfdb28642bc2070f63b6/wmf-config/InitialiseSettings.php#8235). In such cases it might not make sense to warn users for 35% threshold. Maybe in these cases we just don't have a warning at all and just an error?

The 45% thresholds are extreme case. It means you cannot publish a translation that has >45% machine translation. This demands heavy editing from translator. We also don't tell the translator about these percentages(T251887).
In my opinition, a simpler, consistant and predictable threshold level is better. If T is threshold for errors, make T-10 as the warning threshold, irrespective of value of T.

Change #1138994 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] mtValidator: Use MT thresholds from configuration

https://gerrit.wikimedia.org/r/1138994

Change #1141940 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250505

https://gerrit.wikimedia.org/r/1141940

Change #1141940 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250505

https://gerrit.wikimedia.org/r/1141940

Appears to be working as expected.

Screenshot from Assamese Wikipedia where the MT limit is 80%, warning appears till 70%

image.png (1×618 px, 74 KB)