Skip to content

fix(IT): restore 1,378 corrupted native fields (#1349 follow-up)#1477

Merged
dr5hn merged 1 commit into
masterfrom
fix-it-native-on-master
Apr 27, 2026
Merged

fix(IT): restore 1,378 corrupted native fields (#1349 follow-up)#1477
dr5hn merged 1 commit into
masterfrom
fix-it-native-on-master

Conversation

@dr5hn

@dr5hn dr5hn commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Re-applied #1397's native-restore commit on a clean branch from current master (the original branch was based on #1395 and had inflated diffs after #1395 was squash-merged).

Refs #1349 — restores 1,378 corrupted native fields on Italian cities (machine-translation artefacts like PeroMa, PostalPostale, ParetoLibbra).

Where a city's name matches an ISTAT comune, this PR sets native = name. Cities whose name is not an ISTAT comune (~2,500 frazioni) are intentionally left untouched.

Counts

  • input: 9,941
  • already correct: 6,070 (native already == name)
  • no ISTAT match: 2,499 (left untouched — frazioni)
  • restored: 1,378

Past machine-translation runs polluted the native field for many IT
cities (e.g. Pero -> native "Ma", Postal -> native "Postale",
Panchià -> native "Possono agganciare", Pareto -> native "Libbra"
which is "pound"). The name field already holds the canonical Italian
form (Pomigliano d'Arco, Sant'Ambrogio di Torino, etc.), so where the
city's name matches an ISTAT comune, native is now copied from name.

Cities whose name is not an ISTAT comune (~2,500 frazioni) are left
untouched — no authoritative replacement exists.

Counts: 9947 input -> 6070 already correct, 2499 no ISTAT match, 1378
restored.

Stacks on top of #1395 (the city remap PR).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 27, 2026 14:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 27, 2026
@dosubot dosubot Bot added the fixed Issue has been fixed label Apr 27, 2026
@dr5hn dr5hn merged commit 38d846c into master Apr 27, 2026
1 check failed
@dr5hn dr5hn deleted the fix-it-native-on-master branch April 27, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:cities fixed Issue has been fixed large-contribution size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants