Skip to content

Adding common doctor titles - #32

Closed
lrhache wants to merge 1 commit into
derek73:masterfrom
lrhache:patch-1
Closed

Adding common doctor titles#32
lrhache wants to merge 1 commit into
derek73:masterfrom
lrhache:patch-1

Conversation

@lrhache

@lrhache lrhache commented May 26, 2015

Copy link
Copy Markdown

Doctor of Medicine (M.D.) and Doctor of Osteopathic Medicine (D.O.) are commonly used as suffix or prefix in a name (with or w/o the dot notation)
IE: Louis Hache, M.D.

Doctor of Medicine (M.D.) and Doctor of Osteopathic Medicine (D.O.) are commonly used as suffix or prefix in a name (with or w/o the dot notation)
IE: Louis Hache, M.D.
@derek73

derek73 commented May 26, 2015

Copy link
Copy Markdown
Owner

I don't think adding these to the titles would cause a problem because they are not likely to also be first names (though part of me wonders if someone named Do is going to email me someday to complain that the parser thinks his name is a title).

But adding these to the titles would support them at the beginning of the name, so "M.D. Louis Hache" or "Hache, M.D. Louis". Is that really what you want? The parser already correctly parses the example you provided:

$ python tests.py "Louis Hache, M.D."
<HumanName : [
    title: '' 
    first: 'Louis' 
    middle: '' 
    last: 'Hache' 
    suffix: 'M.D.'
    nickname: ''
]>

Or, maybe you want "title" to be more semantic rather than positional like #2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants