-
-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(locale): sort person data #3269
Conversation
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #3269 +/- ##
=======================================
Coverage 99.96% 99.96%
=======================================
Files 2806 2806
Lines 217140 217140
Branches 980 977 -3
=======================================
+ Hits 217061 217067 +6
+ Misses 79 73 -6
|
This is truncating as well as sorting. |
That was not intended. I'll revert it and redo it later. |
318bac6
to
4847a6b
Compare
Should be fixed now. The script I have used to sort (and unique) the entries is in the first commit. |
The only thing I'm concerned about is a theoretical situation where:
So I want to manually double check to make sure this is not the case for any locales in this PR. |
This PR doesnt change that.
That's what the next PR will do. At least for things that can be automated. We can later still do manual adjustments.
That feature will be obsolete with the above cleanup PR anyway. Also according to our definitions update, specifically assignable values dont belong in generic any longer. So we would only loose that info, if generic is present and specifc entries are missing. |
I checked for (I should have filtered for already sorted lists as well) The following locales are potentially affected: (Click to expand)
|
All last name patterns are basically 1-2 elements and there is no gender aware part/sorting in there (yet). |
FirstName En-au-ocker is two concatted sets. Ka-Ge is a wild mix of female and male names. |
The last names are not sex aware in the relevant locales, so there is nothing to do for us for them. |
@matthewmayer Does that solve the concerns you are having? Feel free to do your own analysis. |
Currently blocked by #3270 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"LGTM" - no bitcoin miner implementation found 🤣
Follow-on to #2265(the actual follow on will be after #3266)infra: implement inactive locales content generation enhancement #2265Preparation for #3266
Sorts (and uniques) the entries in the
person
module definitions in all locales.The first commit contains the script changes that were used to apply the changes.