Skip to content

HumanNameParser incorrectly interprets some name components as postnominals #18

@CarlosManuelRodr

Description

@CarlosManuelRodr

Hi,
While using HumanNameParser, I noticed that some name parts in names such as "Ruvin Phidd" are incorrectly identified as postnominals.

The cause is that the default postnominals

public static final List<String> DEFAULT_POSTNOMINALS = Collections.unmodifiableList(
        Arrays.asList(
                "phd",
                "ph.d.",
                "ph.d",
                "esq",
                "esquire",
                "apr",
                "rph",
                "pe",
                "md",
                "ma",
                "dmd",
                "cme",
                "dds",
                "cpa",
                "dvm"));

contains periods (.), which are interpreted as wildcard characters when parsed as regular expressions. As a result, unexpected matches occur during name parsing.

I have created a pull request to address this issue:
#17

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions