fix(person): change fullName to use name patterns#1637
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #1637 +/- ##
==========================================
- Coverage 99.63% 99.63% -0.01%
==========================================
Files 2346 2346
Lines 235002 235115 +113
Branches 1134 1132 -2
==========================================
+ Hits 234147 234250 +103
- Misses 833 843 +10
Partials 22 22
|
|
I have added a new helper function I converted the existing name patterns to use weights (roughly, I tried to have prefixes/suffixes on 10-20% of the names only, people who know the locales better could tweak this later.) |
Could you please move that to a separate PR? This is getting harder and harder to review. |
|
I will change this back to draft for now and split into some smaller PRs |
You are right. We also considered renaming other pattern files such as location street and city pattern files. I'm not sure whether it should be done in a separate PR though (to split simple renames from functional changes and locale additions). |
|
sure, it can wait until a later PR. |
|
Could you please fix the new lint error? |
Head branch was pushed to by a user without write access
c3ccd26
|
Yay! Thanks for all the help with this |
Fixes #1211
This is work-in-progress tentative draft fix for #1211 which is a simplified version of the ideas in #1216.
Sample output: en, generic
Sample output: en, male
Sample output: en, female
Sample output: es
Sample output: zh_CN (note lastname before firstname)
All locales
(note there are still first name issues in some languages due to #1610 (comment) )
Number of name patterns is shown in paretheses