Skip to content

Parsing title and last name, e.g. "Mr XXX" should be last name, not first name #7

Description

@danhartropp

Love this library - very useful.

However, I've noticed that parsing names in the format Prefix Lastname (e.g. Mr Magoo) parse with a blank name.last and the last name in the first name position (e.g. name.first == Magoo, name.last == ''). I think this should be the other way round!

I may have time to fix this in your code later, but for now i'm using the following kludge to make it work in my code...

if name.title != '':
if name.last == '':
name.last = name.first
name.first = ''

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions