M
mcnews
anybody willing to share a name parsing routine?
tia,
mcnewsxp
tia,
mcnewsxp
mcnews said:anybody willing to share a name parsing routine?
I suggest to describe in more detail what exactly you want to archieve.
Input Output Output Output Output OutputI suggest to describe in more detail what exactly you want to archieve.
parse names
Input Output Output Output Output Output
------------------- ---------- ------ ------ --------- ------
Unparsed name Prefix First Middle Last Suffix
=================== ========== ====== ====== ========= ======
Smith Smith
Smith Sr. Smith Sr
Mrs. Smith Mrs Smith
Rev. Smith Jr. Rev Smith Jr
Mr. and Mrs. E.Jones Mr and Mrs E Jones
Mr. & Mrs. Bix, CPA Mr & Mrs Bix CPA
Wilson, Mr & Mrs Jim Mr & Mrs Jim Wilson
J. J.Johnson V J J Johnson V
Sir T. S. Eliot Sir T S Eliot
e e cummings, IV e e cummings IV
ee cummings ee cummings
Lt. Gen. C James Phd Lt Gen C James Phd
W.E.B. DuBois W E B DuBois
Du Pont, Jackie Jackie Du Pont
Clyde Smith-Jones Clyde Smith-Jones
Mike O'Donnell Mike O'Donnell
O Donnell, Mike Mike O Donnell
Jimmy Mac Donald Jimmy Mac Donald
Mr. A. E. Von Sturm Mr A E Von Sturm
Ms. Beverly D'Angelo Ms Beverly D'Angelo
i know.As in turn johnsmith into "John Smith" or into "John" and "Smith"
seperately?
What exactly is the input? Firstname and lastname in a list like this:
johnsmith
johndoe
ericsmith
jackjackson
or just a long string like this
"johnjacksonericsmithjohndoephilliprosstaylor" and what would be the
correct output exactly? Are there any deliminators, do some records
have middle names as well? Is for parsing names from a document like
"dear john b. smith" and you want just "john" or do you want "john b".
do you want the full stop like this "John B.". Is it for the purpose
of Case Correction like this:
i heard that john smith isn't very well
into
i heard that John Smith isn't very well