Skip to content

Strange parsing of name w lastname prefix and title before and after #100

Description

@kaspersorensen

The combination of having lastname prefixes and repeated titles before and after a name seems to break the parsers logic around middle name handling.

Here's a test that fails:

        hn = HumanName("dr Vincent van Gogh dr")
        self.assertEqual("Vincent", hn.first)
        self.assertEqual("van", hn.middle)
        self.assertEqual("Gogh", hn.last)

For some reason, the middle name comes out as dr Vincent van instead of the expected van.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions