crabsodyinblue
Programmer
- Aug 22, 2001
- 14
Hi
Is there any known formula for converting or validating Surnames to Upper Lower Case for mainly British surnames that could be coded into a Cobol program.
It is fairly easy to convert more standard surnames by inspecting the surname and convert the first character of the name to UPPER case but problems arise in what action should be taken when coming across more unusual names.
Here is a few examples to try and explain what I mean
if JONES was keyed in it should be shown Jones
but when you have names like MCCLOY or MACDONALD they should be represented as McCloy and MacDonald
Further complications arise with double barrelled hyphenated names like Ashcroft-Price and also names with unique characters in them like O'BOYLE , O'BRIEN , D'ARCY
or names that are non-British in origin like LE BLOND , LE TISSIER , VAN DER VELDT , DU BOSKY, DU PONI, DE BOER
Also some names may have suffixes added to the end of them like JNR , JR (JNR) , SNR (SNR)
I just wondered if anyone had to perform a similar task , and if there is any hard and fast rule. All the names provided as an example are actual valid surnames in the Local Telephone directory.
Regards
Is there any known formula for converting or validating Surnames to Upper Lower Case for mainly British surnames that could be coded into a Cobol program.
It is fairly easy to convert more standard surnames by inspecting the surname and convert the first character of the name to UPPER case but problems arise in what action should be taken when coming across more unusual names.
Here is a few examples to try and explain what I mean
if JONES was keyed in it should be shown Jones
but when you have names like MCCLOY or MACDONALD they should be represented as McCloy and MacDonald
Further complications arise with double barrelled hyphenated names like Ashcroft-Price and also names with unique characters in them like O'BOYLE , O'BRIEN , D'ARCY
or names that are non-British in origin like LE BLOND , LE TISSIER , VAN DER VELDT , DU BOSKY, DU PONI, DE BOER
Also some names may have suffixes added to the end of them like JNR , JR (JNR) , SNR (SNR)
I just wondered if anyone had to perform a similar task , and if there is any hard and fast rule. All the names provided as an example are actual valid surnames in the Local Telephone directory.
Regards