A package for presenting person names
robinvdvleuten.nl
A package for presenting person names
1–10 of 20 posts
Re: A package for presenting person names
#2Re: A package for presenting person names
#3For 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.
Re: A package for presenting person names
#4Interesting that you as a Dutchman did not model Tussenvoegsel, which is unique to Anglosaksian names and in particular Dutch, Belgian and German names. Handling of them is unique within these cultures. It should also not be confused with infix.
Most of the time a distinct between first and last name is already enough for presentational purposes.
Re: A package for presenting person names
#5Re: A package for presenting person names
#6[1] https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...
Re: A package for presenting person names
#7Re: A package for presenting person names
#8Is `$name->sorted` incorrect? I would have thought it sorted on family name, not middle name? 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.
Re: A package for presenting person names
#9I would be interested in seeing a "level of compliance table" of this piece of software (or its Ruby ancestor) against each of the falsehoods programmers believe about names [1] [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?