没有不值得去解决的问题,也没有不值得去学习的技术!

When the Validator Reports an Error: Should You Fix the Translation or the Rule? A Korean Translation Case Study of A Tour of Go

Figure 2: Comparison between the English source and the ko-KR candidate that failed validation at the time

作者:

在

While translating the Korean version of A Tour of Go, I ran into a very typical problem:

The automatic validator reported an error. Should I fix the translation, or should I fix the validator?

In the past, when encountering a validation failure, my first reaction was usually straightforward:

Since validation didn’t pass, find the structural issue in the translation and fix it until it passes.

This approach works fine most of the time.

After all, one of the validator’s key responsibilities is to protect technical structures—such as code, Go identifiers, links, present directives, and preformatted blocks—that should not be broken during translation.

But this Korean case made me realize:

A FAIL from the validator is evidence, but it doesn’t necessarily mean “the translation is definitely wrong.”

More importantly, the reverse is also true: you can’t discover a single validator misjudgment and start assuming:

“The subsequent failures are probably just the validator being too strict.”

What you really need to do is determine which category each failure belongs to:

Plaintext
The translation broke the technical structure
→ Fix the translation

The technical identity of the translation is intact; it's just a legitimate grammatical phenomenon in the target language
→ Check the validator

The language quality itself is poor
→ Go through revision, rather than adjusting the validator

The Korean codex-ko-KR-004 batch happened to illustrate the boundaries between these three very clearly.


1. Same batch, 3 validation failures out of 13 TranslationUnits

This happened in:

Plaintext
codex-ko-KR-004

This batch contained 13 TranslationUnits.

After the first process run:

Plaintext
unit_count: 13
validation_passed: 10
validation_failed: 3
Figure 1: ko-KR batch 004 initial validation, 3 out of 13 TranslationUnits failed
Figure 1: ko-KR batch 004 initial validation, 3 out of 13 TranslationUnits failed

The failures were:

Plaintext
concurrency/2
concurrency/4
concurrency/6

But looking closely at the error reasons, you’ll find they aren’t the same kind of problem.

concurrency/2:

Plaintext
referenced Go identifier count mismatch:
expected 2, actual 0

concurrency/6:

Plaintext
referenced Go identifier count mismatch:
expected 1, actual 0

Both point to:

A mismatch in the number of referenced Go identifiers in the teaching comments.

But concurrency/4 is completely different:

Plaintext
font span mismatch at index 6:
expected bold, actual program

In other words, although they all resulted in:

Plaintext
validation_failed

behind the scenes, they already fell into at least two categories:

Plaintext
identifier recognition

and:

Plaintext
present font structure

This was the starting point for the subsequent analysis.

I couldn’t just retranslate all three files and hope the model happened to satisfy the validator.


2. First look at concurrency/2: Were the Go identifiers really lost?

concurrency/2 is the Channels page.

The official English source contains this teaching code:

Plaintext
ch <- v    // Send v to channel ch.
v := <-ch  // Receive from ch, and
           // assign value to v.

The Korean candidate became:

Plaintext
ch <- v    // v을 채널 ch로 보냅니다.
v := <-ch  // ch에서 값을 받아
           // v에 할당합니다.
Figure 2: Comparison between the English source and the ko-KR candidate that failed validation at the time
Figure 2: Comparison between the English source and the ko-KR candidate that failed validation at the time

Looking only at the technical identity reveals a crucial fact:

The original:

Plaintext
v
ch

did not disappear.

The Go code:

Plaintext
ch <- v
v := <-ch

was completely unmodified.

The v and ch in the teaching comments were also still present.

The change was that the Korean translation naturally attached Korean grammatical elements directly to these ASCII identifiers, for example:

Plaintext
ch에서
v에

rather than forcing a style like:

Plaintext
ch 에서
v 에

3. It’s ch + 에서 for humans, but not necessarily for the lexer

What we truly hit here was the boundary between “natural language” and “programmatic lexical analysis.”

From a Korean reader’s perspective, it’s natural to parse:

Plaintext
ch에서

as:

Plaintext
ch + 에서

where:

Plaintext
ch

is still the real Go identifier from the course code.

The Korean following it is just part of natural language grammar.

However, the validator’s original logic was closer to programmatic lexical analysis.

And Go identifiers themselves support Unicode letters.

Therefore:

Plaintext
ch에서

could be seen as a single complete identifier by the lexer.

What it saw was no longer:

Plaintext
ch

but rather:

Plaintext
ch에서

When comparing this against the set of identifiers in the source code:

Plaintext
ch
v

it naturally couldn’t find an exact match for:

Plaintext
ch

Ultimately producing:

Plaintext
expected 2
actual 0

as the result.

So the true meaning of this failure wasn’t:

The model deleted ch.

But rather:

The validator couldn’t re-identify the still-intact ASCII Go identifier from normal Korean writing.


4. Modifying the Korean to pass the validator at this point might actually be wrong

After identifying the problem, there was actually a simplest “fix.”

For instance, forcing the translation to write:

Plaintext
ch 에서
v 에

Or even requiring the model to:

  • Insert spaces;
  • Add backticks;
  • Insert extra nouns;
  • Use other artificial delimiters.

This would allow the old validator to re-recognize:

Plaintext
ch
v

and smoothly PASS.

But this leads to a very strange outcome:

The machine check passes, but the target language is distorted by the validator’s implementation details.

Yet the validator’s design goal was supposed to be protecting translation quality and technical structure.

If it ultimately becomes:

Requiring Korean to follow English lexical boundaries just to make the validator easier to parse.

then the direction is backwards.

So this time, I didn’t choose:

Plaintext
Modify correct Korean
→ Cater to the old validator

but instead started checking:

What does the validator truly need to protect?


5. What really needs protecting is the identifier’s identity, not that it must be “lexically independent”

For this scenario, what truly must not happen is:

Plaintext
v → value
v → v2
v → V
v → _v
v → deleted
v → appears twice
v / ch → order incorrectly changed

Because all of these change the teaching comment’s reference to the real Go identifier.

But:

Plaintext
v + Korean grammatical characters
ch + Korean grammatical characters

doesn’t change the technical identity of that ASCII identifier itself.

Therefore, the final rule was redefined as:

For ko-KR teaching comments, one or more Hangul characters may be directly appended to a fully preserved ASCII Go identifier according to normal Korean grammar.

Figure 3: The narrow rule for ko-KR teaching comments that ultimately entered the official Translation Task Spec
Figure 3: The narrow rule for ko-KR teaching comments that ultimately entered the official Translation Task Spec

Here I specifically emphasize “narrow rule.”

Because after discovering the validator’s misjudgment, the most dangerous approach would actually be:

Just relax the identifier validation across the board.

This could easily let through the problems that truly should be blocked.

So the final rule still requires:

Plaintext
ASCII identifier bytes unchanged
Case unchanged
Count unchanged
Order unchanged
Belonging to the same teaching comment unchanged

While explicitly stating:

Plaintext
Cannot append ASCII letters
Cannot append digits
Cannot append underscores

For example, if the source identifier is:

Plaintext
v

The following still cannot pass just because of a “special Korean rule”:

Plaintext
value
v2
_v
V

And it must not allow:

Plaintext
Deleting v
Repeating v
Swapping identifiers

6. And this exception cannot spread to the entire project

This rule also has several very important scopes.

It only applies to:

Plaintext
locale = ko-KR

and only applies to:

Plaintext
translatable teaching comment body

It does not apply to actual Go source code.

It also does not relax:

Plaintext
present directive
link
URL
preformatted non-comment bytes
other protected structure

Nor does it automatically become:

Plaintext
All locales allow any Unicode character to follow identifiers

This is actually something I value highly when modifying validators now:

Real linguistic phenomena need support, but the exception’s scope must be as small as possible.

Just because Korean exposed a real problem, I shouldn’t conveniently modify a global regex and change the semantics for Chinese, Japanese, French, German, and all future languages.


7. “I think it’s fine” alone isn’t enough; we need positive and negative tests

After modifying the rule, a specific set of tests was added.

Figure 4: ko-KR identifier suffix positive and negative tests all passed
Figure 4: ko-KR identifier suffix positive and negative tests all passed

The first category of tests proves that normal Korean forms should be accepted.

For example:

Plaintext
v를
ch로
ch에서
v에
i를
c에서

In these scenarios, the original ASCII Go identifier still exists intact.

The second category of tests is even more important:

It must prove that the validator hasn’t lost its original protection capabilities by supporting Korean.

So the tests specifically include:

Plaintext
ASCII_letters_appended
ASCII_digit_appended
ASCII_underscore_prefix
case_changed
identifier_missing
identifier_repeated
identifiers_reordered

That is:

Plaintext
v → value
v → v2
v → _v
v → V
v → disappeared
v → repeated
identifier order changed

These cases must continue to fail.

It also verifies:

The same rule must not allow other locales to accept this behavior just for implementation convenience.

When actual non-comment Go code is modified, it should still be rejected.

Only then is a safe validator adjustment considered complete.


8. The most crucial evidence: after modifying the validator, it didn’t become 13/13

If this article ended here, it would easily create another false impression:

The 3 validation failures in batch 004 were all validator problems.

That wasn’t the case.

After modifying the validator and officially running revalidate, the result went from:

Plaintext
validation_passed: 10
validation_failed: 3

to:

Plaintext
validation_passed: 12
validation_failed: 1
Figure 5: After adjusting the validator, the two identifier failures disappeared, but the real protected structure failure remained
Figure 5: After adjusting the validator, the two identifier failures disappeared, but the real protected structure failure remained

This is actually the step I consider the most important in this entire case.

concurrency/2 passed.

concurrency/6 also passed.

This shows that these two:

Plaintext
referenced Go identifier count mismatch

were indeed due to the validator’s insufficient understanding of Korean boundaries.

But:

Plaintext
concurrency/4

still failed.

The error was still:

Plaintext
font span mismatch:
expected bold, actual program

That means:

After the validator was fixed, the real structural error didn’t disappear along with it.

This was exactly the result I wanted to see.


9. For concurrency/4, we can no longer blame the validator

The candidate for concurrency/4 had this difference:

Plaintext
-*추가 참고:*
+*추가*참고:*

It looks like just a single * was moved.

But for present text, this isn’t an ordinary punctuation change.

*...* itself carries font span semantics.

Therefore:

Plaintext
*추가 참고:*

and:

Plaintext
*추가*참고:*

do not correspond to the same structure.

The original validator reporting:

Plaintext
expected bold
actual program

was meaningful here.

This kind of problem cannot be explained by:

“Korean grammar is quite special.”

Nor can we keep extending the validator:

“Let’s be more flexible with the asterisk placement in Korean too.”

Because once you do that, protected structure validation truly starts to lose its meaning.

So the correct handling path for this failure was:

Modify the candidate.


10. Only then did we truly reach 13/13

After fixing the concurrency/4 candidate, validating again:

Plaintext
validation_passed: 13
validation_failed: 0

The entire batch was truly complete.

So the full process was actually:

Plaintext
13 units
↓
10 passed / 3 failed
↓
Analyze failures
↓
Find that concurrency/2, concurrency/6 belong to Korean identifier boundary issues
↓
Modify validator
↓
Add positive and negative tests
↓
Official revalidate
↓
12 passed / 1 failed
↓
Confirm concurrency/4 is a real protected structure issue
↓
Modify candidate
↓
13 passed / 0 failed

This process was a bit more complex than:

Plaintext
Fail
→ Retranslate three files
→ Try again

But what it leaves behind is also completely different.


11. Why did I specifically add revalidate?

There was also a small workflow change this time:

Plaintext
feat: Add formal retranslation revalidate process

The reason also stems from the problem itself.

The candidates for concurrency/2 and concurrency/6 didn’t go bad because they failed.

What changed later was:

the validator.

So after the validator was fixed, the most correct action should be:

Plaintext
Use the same candidate
→ Re-run validation with current rules

rather than:

Plaintext
Re-calling the model
→ Generating a potentially completely different translation

Otherwise, an absurd situation would arise:

The original translation was actually fine, but just because the validator was fixed, we’d ask the model to translate it again.

This not only wastes quota but also introduces new linguistic variations.

So we officially added:

Plaintext
revalidate

used for:

Re-running automatic validation on existing candidates after the candidate remains unchanged and the validator undergoes a legitimate change.

Meanwhile, the old failure evidence is still preserved in:

Plaintext
revalidation-history/

rather than being directly overwritten by the new PASS, making it look like it never failed.

This point is also very important for future troubleshooting of rule evolution.


12. Retry, Revalidate, and Revision are actually three completely different actions

After working on Korean, I increasingly feel that these three paths need to be specifically clear.

Retry

Applicable to:

Plaintext
restore_failed
validation_failed

And specifically for scenarios where protected artifacts truly need to be regenerated or repaired.

For example, the font span structural error in concurrency/4.

Revalidate

Applicable to:

The candidate hasn’t changed, but the validator itself has undergone an evidence-backed fix.

Like this time:

Plaintext
concurrency/2
concurrency/6

were typical cases.

Revision

is completely different.

If Quality Check or Final Review determines:

Plaintext
Unnatural language
Meaning deviation
Terminology errors
Insufficient expression quality

then it’s not an automatic validation issue.

You must:

Plaintext
re-export
→ Codex retranslation
→ process
→ validation
→ Quality Check
→ Final Review

That is, a new revision batch.

The validator cannot be modified.

Nor can retry be used to bypass the language quality gate.

These three concepts all look like:

“It didn’t pass last round, let’s do it again.”

But their engineering implications are completely different.


13. Automatic validation never equals Translation Quality

This is another point from this case worth recording.

An automatic validator can check many things:

Plaintext
Has the code changed?
Were any protected tokens lost?
Are links broken?
Did directives change?
Were Go identifiers rewritten?
Is the present structure maintained?

But it cannot answer:

Plaintext
Is the Korean natural?
Is the meaning accurate?
Is the terminology consistent?
Is the teaching expression suitable for Korean readers?

The reverse is also true.

A Korean sentence being very natural doesn’t prove:

Plaintext
Go identifiers weren't changed
Links weren't lost
Code didn't change

So the two types of checks are inherently complementary:

Plaintext
Automatic validation
→ Technical safety

Quality Check / Final Review
→ Language quality

The validator encountering its own linguistic boundaries this time doesn’t mean automatic validation is unreliable either.

Quite the opposite.

Because it explicitly reported the failure, I had the evidence to continue analyzing:

Is it a translation problem, or a validator problem?


14. Validators also need to be calibrated by new locales

When designing validators previously, it was easy to have a default assumption:

As long as the rules are strict enough, it’s safer.

After working on several languages, I now lean towards:

Strictness should target the semantics that truly need protection, not the surface form of a specific language.

For example, if what truly needs protecting is:

Plaintext
identifier v

then we should protect:

Plaintext
Whether it's still the ASCII v
Whether the occurrence count has changed
Whether the case has changed
Whether the order has changed
Whether it still references the correct code

rather than protecting:

v must be followed by an ASCII space or English punctuation.

The latter is actually just an incidental form brought about by English writing conventions.

If another language in the future exhibits:

Plaintext
Prefix agglutination
Suffix agglutination
Unicode punctuation
Different word-breaking habits

it might expose similar issues again.

At that time, we can’t simply assume:

The new language doesn’t fit the validator, so the new language should change.

The more reasonable question should be:

Is the current validator actually checking technical identity, or has it inadvertently treated the source language’s writing habits as technical rules?


15. But “language differences” also can’t be a universal excuse to relax rules

This point is equally important.

If we only emphasize:

The validator needs to adapt to natural language.

it’s easy to swing to the other extreme.

Later, when encountering any failure, one could say:

It might be a special locale case.

And then keep adding exceptions.

Eventually, automatic validation will become:

Plaintext
if zh-CN ...
if ja-JP ...
if de-DE ...
if fr-FR ...
if ko-KR ...

and ultimately everything will pass.

So the judgment method I’ve set for myself now is closer to:

Step 1: Confirm whether the protected technical identity has actually changed

If it has changed:

Modify the candidate.

Step 2: If the identity hasn’t changed, confirm whether the failure comes from normal target language grammar

If it does:

Only then consider the validator.

Step 3: Rule modifications must be as narrow as possible

For example, this time only allowing:

Plaintext
ko-KR
+
teaching comment body
+
complete ASCII Go identifier
+
Hangul suffix only

Step 4: Negative tests must be added

to prove:

Real technical damage still can’t pass.

If I can’t achieve this step, I’d be more inclined not to modify the validator.


16. I no longer treat validator PASS as the goal itself

There was also a change in mindset this time.

Previously, when seeing:

Plaintext
validation_failed

it was easy to set the goal as:

I need to find a way to make it PASS.

Now I think a more accurate goal should be:

I first need to determine whether this FAIL is correct.

If it is correct:

Plaintext
Keep the validator
Modify the candidate

If it is incorrect:

Plaintext
Keep the candidate
Modify the validator
revalidate

rather than:

Using whichever method makes the status turn green the fastest.

Because the status ultimately showing:

Plaintext
passed

is just a result.

What’s truly important is:

Why it should pass.


17. What this case ultimately leaves behind is more than just a Korean rule

On the surface, this fix was just:

Plaintext
Supporting Korean suffixes for ko-KR comment identifiers

But I feel the experience left behind is more universal.

First:

The validator is not absolute truth.

It is an implemented set of rules, and equally capable of carrying linguistic assumptions not realized during design.

Second:

Discovering a validator misjudgment doesn’t mean validation standards should be lowered.

The correct approach is to narrow the exception, allowing real technical constraints to persist.

Third:

Whether the candidate or the validator changed determines whether to execute retry, revalidate, or revision next.

Fourth:

Failure evidence should be preserved.

Just because a new rule lets it pass, we shouldn’t directly erase the old failure.

Fifth:

Target language quality cannot take a back seat to machine validation.

If a writing style is inherently normal in the target language, and the technical identity is completely unchanged, the translation shouldn’t be forced into artificial formats just to make it easier for the tokenizer to recognize.


Summary

When ko-KR batch 004 first ran validation:

Plaintext
13 units

10 passed
3 failed

Among them:

Plaintext
concurrency/2
concurrency/6

On the surface, both were:

Plaintext
referenced Go identifier count mismatch

But the real cause was that Korean can directly attach Hangul grammatical characters to ASCII Go identifiers, while the old validator treated the entire Unicode string as a new identifier.

So:

Plaintext
Modify validator
→ Add narrow ko-KR teaching comment rule
→ Add positive and negative tests
→ revalidate

The result became:

Plaintext
12 passed
1 failed

The remaining:

Plaintext
concurrency/4

was a real:

Plaintext
font span mismatch

At this point, the validator could no longer be adjusted.

Instead, the candidate needed to be modified.

Finally:

Plaintext
13 passed
0 failed

So what I truly took away from this isn’t:

“Korean needs a special validator.”

But rather:

When the validator reports an error, the right question isn’t “how do I make it pass,” but “this time, who is actually wrong?”

If the translation broke the technical structure, fix the translation.

If the validator mistook normal target language grammar for technical damage, fix the validator.

If the language quality is poor, send it back to revision.

All three might seem to slow down the current process.

But only by drawing the boundaries clearly can automatic validation truly protect the translation, rather than shaping it instead.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系