Skip to content

fix(core): stop flagging "Czech Republic" as outdated#2797

Merged
elijah-potter merged 1 commit intoAutomattic:masterfrom
NaveenPrasanth:fix/czech-republic-false-positive
Feb 26, 2026
Merged

fix(core): stop flagging "Czech Republic" as outdated#2797
elijah-potter merged 1 commit intoAutomattic:masterfrom
NaveenPrasanth:fix/czech-republic-false-positive

Conversation

@NaveenPrasanth
Copy link
Contributor

@NaveenPrasanth NaveenPrasanth commented Feb 24, 2026

Summary

Fixes #2692

  • Removed the Czech Republic → Czechia mapping from UpdatePlaceNames
  • "Czech Republic" is the country's formal name; "Czechia" is the official short name and both are valid (like "French Republic" vs "France")
  • Added a regression test to ensure "Czech Republic" is not flagged

Test plan

  • cargo test -p harper-core update_place_names : all 17 tests pass
  • cargo fmt : applied
  • cargo clippy -p harper-core : no new warnings

"Czech Republic" is the country's formal name, while "Czechia" is the
official short name. Both are valid, similar to "French Republic" vs
"France". Remove the mapping and add a regression test.
@NaveenPrasanth NaveenPrasanth marked this pull request as ready for review February 26, 2026 13:52
Copy link
Collaborator

@elijah-potter elijah-potter left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for the patch!

In the future, if you're addressing a specific issue #, reference it in the test name. For example, that could look like dont_flag_czech_republic_issue_2692.

It isn't a hard and fast rule, and it's definitely not going to stop me from merging this. Thanks again!

@elijah-potter elijah-potter added this pull request to the merge queue Feb 26, 2026
Merged via the queue into Automattic:master with commit f25e1ef Feb 26, 2026
11 checks passed
NaveenPrasanth added a commit to NaveenPrasanth/harper that referenced this pull request Feb 27, 2026
"esp." is not Latin, so rename the function and constants to
"abbreviation" which correctly describes both Latin (etc., vs., et al.)
and non-Latin (esp.) abbreviations. Also rename test per review
feedback on Automattic#2797.
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

Successfully merging this pull request may close these issues.

"Czech Republic" is flagged as incorrect

2 participants