(no title)
saltymimir | 2 years ago
I happen to be handing that data over to airlines, which has some of the less forgiving, yet fragmented name requirements. If you handle this incorrectly, your customer can't fly, even after they paid for the flight. And for those who say that this doesn't matter as much: It absolutely does. People do get confused by this more frequently than you think. I've seen people losing an entire trip that they saved for, all because of unclear naming requirements.
The way I deal with this is to provide a country and locale specific name fields. You don't have to detect the geolocation or track the user for this, just let them choose whatever locale setting they want, and give them the "sensible" layout. Here are some examples:
- In Vietnam, we use last name then first name.
- In Indonesia, we use first name, then last name, but also give an option to declare that the person doesn't have a last name.
- In Singapore, we use a single field to input the first name and last name.
Even when you've handled the layout convention carefully, the 3rd party you're handing the data to, if one exists, might not give the same care and attention that you do. In my case: some airlines just haven't gotten around the idea that some people simply don't have last names. When a person with a single name wants to fly, airlines want the customer to use the name for both first and last name (e.g. If the person's name is David, then the airline expects "David David"). If you require First Name and Last Name as the input, and don't elaborate on how to fill them, the customer might simply fill the last name with a dot (".") character. The airlines / any other 3rd party won't accept that. For this, I suggest to detail out the ways in which you handle the data and go talk to your providers, if any.
All in all, it's a pretty tough challenge, and the wisdom around this isn't going to fit inside a single HN post. I do commend you for actually thinking about this problem. Good Luck.
JimDabell|2 years ago
I have a completely “ordinary” name from a western perspective – first (given), middle, last (family). I live in Singapore, which has a few different popular naming conventions from a few different cultures. I’ve received documents with my name in every single variation possible. I‘ve been Mr First Name, Mr Middle Name, Mr Last Name, and so on. Often I can’t even determine if they have my name correct in their records – it could be recorded correctly but used incorrectly, or it could be recorded incorrectly and used correctly. Sometimes I suspect it’s recorded incorrectly but also used incorrectly in a different way.
Normally it’s not a problem, but like you say, airline tickets can cause issues. I think I’ve been demoted from “check in online” to “check in at a counter because we need to check your paperwork” a bunch of times because my passport doesn’t match my name on my ticket. Often it’s not even the name order – the airline will only sell my ticket with a first name and last name field (meaning I have to drop my middle name, which is on my passport) or they ask for all three and then concatenate first and middle with no space and truncate the last few letters.
Everything would be so much easier if I could just enter my name.
Ekaros|2 years ago
kelnos|2 years ago
I've always found it weird how broken this is. Some US airlines have separate entry fields for first, middle, and last names. But then they jam it together on the boarding pass as "Last, Firstmiddle" (yes, with first and middle mashed together, and middle lowercased). That of course doesn't match my ID, but I've never had a problem traveling, even when I sometimes leave out my middle name entirely. (I guess I get less scrutiny most places since I'm an American white male.)
bpicolo|2 years ago
Bingo. I've had this problem dealing with insurance carriers. They want a very wide degree of name formats, and to make it worse some don't support unicode, some don't support apostrophes, and some don't understand names longer than 22 characters (had multi-hour discussions on exactly which part of the names I needed to cut out in this scenario). They were bewildered that these were problems for data which could include anybody in the US...
lifthrasiir|2 years ago
numpad0|2 years ago
tekkk|2 years ago
Or just having a preferred name and full name, duplicating data but probably it wouldn't be a big deal in most cases.
This would be a nice GitHub project for someone to showcase name inputs in all languages.
magicalhippo|2 years ago
How do you handle this when passing the data to the airlines?
dmurray|2 years ago