Skip to content

fix(naming): transliterate non-ASCII letters instead of dropping them - #183

Open
Lapotor wants to merge 2 commits into
codewithagents:mainfrom
Lapotor:fix/transliterate-non-ascii-letters
Open

Lapotor wants to merge 2 commits into
codewithagents:mainfrom
Lapotor:fix/transliterate-non-ascii-letters

Conversation

@Lapotor

@Lapotor Lapotor commented Aug 31, 2026 •

Copy link
Copy Markdown

What

PhpIdentifier::words() treated every non-ASCII character as a separator and discarded it (e.g. "Straße" -> "StraE"), so it now folds input through Illuminate\Support\Str::ascii() first, transliterating diacritics/ligatures in any Latin-script language to their closest ASCII form ("Straße" -> "Strasse").

Checklist

  • PR title is a conventional commit with a scope (e.g. fix(emitter): ...)
  • Tests added or updated for the change
  • composer validate and the quality gates pass (composer qa)
  • Generated-output determinism is unaffected, or snapshots are updated and the diff is explained
  • No em dashes anywhere (code, comments, docs)

Assisted-by: Claude Sonnet 5 via Claude Code

`PhpIdentifier::words()` treated every non-ASCII character as a word
boundary and discarded it, so "Straße" became "StraE", "Müller" became
"MLler", and "café" became "Caf". This affected schema/component
names, property names, and string-backed enum case names.

Fold the input through `Illuminate\Support\Str::ascii()` before splitting,
so diacritics/ligatures in any Latin-script language transliterate to their
closest ASCII form instead of vanishing. A script with no ASCII
equivalent still falls back to the existing empty-result behavior.

Assisted-by: Claude Sonnet 5 via Claude Code
@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dffaffcd-9db3-426e-b64a-cf5c4b28853d


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

Comment @coderabbitai help to get the list of available commands.

@Lapotor
Lapotor marked this pull request as ready for review August 31, 2026 16:56

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.

1 participant