3 ms·
I’ve always believed that you only need two name related fields in your database. The first is a formal greeting and the second informal greeting. The first i
by junto 2y ago
I’ve always believed that you only need two name related fields in your database.
The first is a formal greeting and the second informal greeting.
The first is what appears on any formal correspondence such as letters and invoices. The second is how you greet me in your application.
As a user I can choose whatever I want. So I can be “Mrs Junto” as a formal greeting and “Hot Stuff” as my informal greeting and I can chuckle every time your app says “Hi there Hot stuff”.
The problem comes that if you integrate with other systems, they nearly always have the idea of separate database / API fields for Title, Salutation, Firstnames, Surname, etc. then it’s non-trivial to work out how to map yours to theirs.
Human name parsers are possible of course but they are fallible.
https://github.com/idauth/node-humanname https://github.com/idauth/node-humanname