Automattic / Automattic/wp-translate

Clean and filter out any lines that are that are identical

Open
#3 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
21
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Some lines in the .po files appear to duplicate the English string into the translated string. This almost certainly adds noise to training so we should filter them out.

```
> #: client/blocks/login/login-form.jsx:214
> msgid "By logging in via any of the options below, you agree to our {{tosLink}}Terms of Service{{/tosLink}}."
> msgstr "By logging in via any of the options below, you agree to our {{tosLink}}Terms of Service{{/tosLink}}."
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the code that reads and prepares the .po files for training, then inspect how msgid and msgstr values are compared. Done means entries whose translated string is identical to the English string are excluded, including cases like the example shown.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.