A package for presenting person names(robinvdvleuten.nl) |
A package for presenting person names(robinvdvleuten.nl) |
1. Ask for "Legal Name" if you need it.
2. Ask "what would you like us to call you?"
If you are displaying users' names to others then you have infinite choices but they all boil down to "what would you like us to show in this context". The simplest is just a global name but you could have different display names towards different users/groups.
Your real name: Your shown name: [leave empty to use your real name]
[1] https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...
new PersonName($this->first_name, $this->last_name);
I mean it could be doing silly things like returning an empty last_name but why bother the user with two fields then?For example, "Alice Betty Cass" should be sorted as "Cass, Alice Betty". The example given would sort it as "Betty Cass, Alice". That would only make sense if the surname was double-barrelled. e.g. Alice Betty-Cass.
This package is a complete waste of time, I'm sorry to say.
Most of the time a distinct between first and last name is already enough for presentational purposes.
Given names are not familiar names. Given and family names are not legal names.
Please do not use 'abstractions' this broken. The appearance of patterns you're trying to abstract here are cultural windows, not global truths.