Repository navigation
✨ feat: clean account names, add Ukrainian, Czech, Serbian and Croatian - #1
Merged
Merged
Conversation
- names such as Kasia9632, KasiaDy12653 or ania.k keep only the leading name - digits, symbols and a camelCase tail are dropped; nothing usable gives "" - createLanguage() in JS and BaseLanguage in PHP handle cleaning, words, initials, casing and exceptions, so a language only supplies its rules - Polish moved onto the core with identical results on all 3,649 names
- uk, cs, sr and hr entry points in JS and Vocative::uk/cs/sr/hr() in PHP - Serbian reads and answers in Cyrillic or Latin; Serbian and Croatian share one rule set - formal titles per language (Пане/Пані, Pane/Paní, Gospodine/Gospođo) - Vocative::for() falls back from regional codes such as sr_Latn - shared fixtures of common names keep both ports identical
- say which install command is for which stack (npm or Composer) - languages table, examples and accuracy notes for uk, cs, sr and hr - contributing guide adds a language through createLanguage/BaseLanguage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Kasia9632,KasiaDy12653orania.kare cleaned before inflecting, so they giveKasiu/aniuand the right gender. When nothing usable is left (123), the result is"".createLanguage()(JS) andBaseLanguage(PHP) handle cleaning, words, initials, casing and exceptions. Polish moved onto it with identical results on all 3,649 names.uk,cs,sr(Cyrillic and Latin),hr, in JS and PHP, with formal titles and Tolgee support.Breaking
vocative('123')now returns""instead of123, so this should go out as 0.2.0.Tests
tests/fixtures/<code>.json), not a full dictionary yet.