Skip to content

fix(bg): use Cyrillic е in ordinals 9 and 10 - #2011

Open
bardrop wants to merge 1 commit into
Humanizr:mainfrom
bardrop-oss:fix-bg-ordinal-latin-e
Open

bardrop wants to merge 1 commit into
Humanizr:mainfrom
bardrop-oss:fix-bg-ordinal-latin-e

Conversation

@bardrop

@bardrop bardrop commented Nov 20, 2026 •

Copy link
Copy Markdown

fixes #2010

Summary

unitsOrdinal 9 and 10 in src/Humanizer/Locales/bg.yml had a Latin e (U+0065) in place of Cyrillic е (U+0435), so every Bulgarian ordinal that ends in 9 or 10 came out with a Latin letter (9.ToOrdinalWords(bg) → девeто). This changes the two words to девет and десет.

Tests

  • LocaleNumberTheoryData.OrdinalCases: fixed the { "bg", 10, "десeто" } row, which had the same Latin e, and added rows for 9 and 29.
  • LocaleNumberTheoryData.OrdinalGenderCases: added masculine, feminine and neuter rows for 9 and 10 (the list skipped them).
  • Before the fix, 9 of these rows fail (Expected: "девето", Actual: "девeто"); after, they pass.
  • dotnet test tests/Humanizer.Tests/Humanizer.Tests.csproj --framework net11.0: 61588 passed, 1 skipped, 0 failed (macOS arm64; I only have the .NET 11 RC runtime, so net8.0/net10.0 were built but not run locally).
  • dotnet format whitespace --verify-no-changes on the changed file is clean.

Checklist

  • Implementation is clean
  • Code adheres to the existing coding standards
  • No Code Analysis warnings
  • There is proper unit test coverage
  • No copied code
  • No comments added
  • Xml documentation: no public API change
  • Based on the latest main (4574b93883bf48e3f0f3bca73297054537317ab2)
  • Links the issue: fixes #2010
  • Readme: no feature change
  • Ran the applicable validation from AGENTS.md (see Tests)

Terminal evidence (merge owner)

Left for the merge owner. Evidence pair at opening: baseSha=4574b93883bf48e3f0f3bca73297054537317ab2 / headSha=b3640f20a2c24c7dd1e3bae9d7faf90a4ce4b09c.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected Bulgarian ordinal spellings for 9 and 10, including gender-specific forms.

unitsOrdinal 9 and 10 had a Latin e, so 9.ToOrdinalWords() gave "девeто".
Fix the test row that pinned it and add rows for 9, 29 and the gendered
forms of 9 and 10.

Fixes Humanizr#2010
Copilot AI balanced review requested due to automatic review settings November 20, 2026 06:04

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 was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Bulgarian ordinal forms for 9 and 10 now use Cyrillic е. The test data adds expectations for ordinals 9, 10, and 29, and for feminine, masculine, and neuter forms of 9 and 10.

Changes: Bulgarian ordinal spelling

Layer / File(s) Summary
Correct ordinal forms and tests
src/Humanizer/Locales/bg.yml, tests/Humanizer.Tests/Localisation/LocaleNumberTheoryData.cs
The locale data replaces Latin e with Cyrillic е in the ordinal forms for 9 and 10. The test data adds expectations for 9 and 29, corrects the 10th ordinal spelling, and adds gendered expectations for 9 and 10.

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: clairernovotny

Merge Risk: Minimal · up to b3640

This corrects the spelling of the Bulgarian ordinals for 9 and 10, so they now use proper Cyrillic characters. It has no known risk. It is waiting only on the usual CI and approval gates.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive [#2010] The source fix is present at head. src/Humanizer/Locales/bg.yml number.ordinal unitsOrdinal 9 is 'девет' and 10 is 'десет'. The rendered text appears to use Cyrillic letters, and the… Confirm at head that LocaleNumberTheoryData.cs contains { "bg", 10, "десето" } with Cyrillic letters only, plus OrdinalCases rows for 9 and 29 and OrdinalGenderCases rows for 9 and 10 in all three genders. Confirm that the bg.yml …
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: Bulgarian ordinal forms for 9 and 10 now use Cyrillic е instead of Latin e. The raw summary and objectives confirm that bg.yml and the matching test data were updated …
Out of Scope Changes check Passed The described changes touch only src/Humanizer/Locales/bg.yml (two ordinal words) and tests/Humanizer.Tests/Localisation/LocaleNumberTheoryData.cs (bg ordinal test rows). Both changes relate direc…
Full details: Title check

Explanation

The title names the main change: Bulgarian ordinal forms for 9 and 10 now use Cyrillic е instead of Latin e. The raw summary and objectives confirm that bg.yml and the matching test data were updated for exactly these forms. The title is specific and matches the changeset.

Full details: Out of Scope Changes check

Explanation

The described changes touch only src/Humanizer/Locales/bg.yml (two ordinal words) and tests/Humanizer.Tests/Localisation/LocaleNumberTheoryData.cs (bg ordinal test rows). Both changes relate directly to issue #2010. The PR description and the AI summary list no unrelated edits, and the summary reports no public API change. The whole-PR diff could not be read, so this verdict relies on the supplied summaries and the verified bg.yml content.

Full details: Linked Issues check

Explanation

[#2010] The source fix is present at head. src/Humanizer/Locales/bg.yml number.ordinal unitsOrdinal 9 is 'девет' and 10 is 'десет'. The rendered text appears to use Cyrillic letters, and the stems combine with the ordinalUnitsAndTensSuffixes neuter suffix о to form девето and десето. The tool output does not expose codepoints, so the Cyrillic е (U+0435) was not verified by a codepoint check. The test-side requirements could not be verified. The diff tool failed because changed blobs were missing. The test file read was truncated at 16000 bytes before the bg ordinal section, so the OrdinalCases row { "bg", 10, ... }, the new 9 and 29 rows, and the OrdinalGenderCases masculine, feminine, and neuter rows for 9 and 10 were not seen at head. The PR summary and the issue describe these changes, but the summary does not establish them. The issue requires the test data fix and the gendered rows, so these coding requirements remain unconfirmed.

Resolution

Confirm at head that LocaleNumberTheoryData.cs contains { "bg", 10, "десето" } with Cyrillic letters only, plus OrdinalCases rows for 9 and 29 and OrdinalGenderCases rows for 9 and 10 in all three genders. Confirm that the bg.yml values for 9 and 10 contain only Cyrillic letters, for example with a codepoint scan of the changed lines. Re-run the bg ordinal tests if the environment is available.

Finishing Touches

Simplify code

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 87ec06c5-a971-46ae-ad19-cbc2e55cdfaf
Commits

Reviewing files that changed from the base of the PR and between 4574b93 and b3640f2.

Files selected for processing: 2

  • src/Humanizer/Locales/bg.yml
  • tests/Humanizer.Tests/Localisation/LocaleNumberTheoryData.cs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T06:06:06.923383Z b3640f2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Merge Protections

🔴 1 of 2 protections blocking · waiting on 🤖 CI

Protection Waiting on
🔴 Ready to land on main 🤖 CI
🟢 🚦 Auto-merge —

🔴 Ready to land on main

Waiting for

  • check-success = @azure-pipelines/Humanizer-CI
This rule is failing.

CI green, authored or approved by a maintainer, review threads resolved, not held.

  • all of:
    • check-success = @azure-pipelines/Humanizer-CI
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0
  • -label = do-not-merge
  • any of:
    • #approved-reviews-by >= 1
    • author = clairernovotny

Show 1 satisfied protection

🟢 🚦 Auto-merge

When all merge protections are satisfied and these conditions match, this pull request will be merged automatically.

  • base = main

@bardrop

bardrop commented Nov 20, 2026

Copy link
Copy Markdown
Author

The two Azure "Runtime platform validation" jobs fail at restore, before any test runs: NU1902/NU1903 (warnings as errors) on System.Security.Cryptography.Pkcs 9.0.6 in the Humanizer.Analyzers.Tests.Roslyn* projects, from the new advisory GHSA-846f-f764-76mx. It is not from this change; main should hit the same thing on its next run.

This branch has not been deployed

No deployments
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.

Bulgarian ordinals 9 and 10 use a Latin e (девeто, десeто)

2 participants