How do I automatically capitalize a person's name?
Suppose that there is a cellphone app where people sign-up for volunteer work opportunities and/or paid jobs.
We wish to capitalize names of volunteers.
| INPUT | OUTPUT |
|---|---|
Noodlum Leumas |
Noodlum Leumas |
NoOdLuM LeUmAs |
Noodlum Leumas |
noodlum leumas |
Noodlum Leumas |
nOODLUM lEUMAS |
Noodlum Leumas |
I have filed job applications with multiple multi-billion dollar corporations such that the corporation cellphone app displayed an error message complaining that I typed my name in all-caps or all-lower case letters.
In order to improve the end-user's experience (for better UX design) we can fix the capitalization on their name for them.
The following is a partial solution, but not the best answer.
Someone else is sure to post an even better answer and receive more upvotes.
For instance,
McDonaldandMkKormicare unlikely to be capitalized correctly.mcdonaldMcDonaldMKCORMICMkCormicnoodlum leumasNoodlum LeumasnOODLUM lEUMASNoodlum Leumas