Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suffixes and get_name #28

Open
lilaconlee opened this issue Jun 7, 2019 · 1 comment
Open

Suffixes and get_name #28

lilaconlee opened this issue Jun 7, 2019 · 1 comment
Milestone

Comments

@lilaconlee
Copy link

Any recommendations for handling suffixes in names? Looks like the parser is just splitting on /, but I could be missing something.

Currently the following names both return Jane and Lane:

1 NAME Jane /Lane/ 
1 NAME Jane /Lane/ Jr 
@KeithPetro
Copy link

If you're really wanting to get this, you could do something like this (if you don't want to change the source code). name_element would have to be an element with the NAME tag. There are a few ways you could get this:

name_element.get_value().split('/')[2].strip()

I would say it would be best to just make a get_suffix() method based on get_name(). It would basically be the same but you'd just want to strip out the 3rd split element instead of the first two.

@joeyaurel joeyaurel added this to the 2.0.0 milestone Mar 22, 2020
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

No branches or pull requests

3 participants