A universal, language-independent name parser PHP library
TJ Hooker
would have previously ended up as Tj Hooker
, with Tj
being the first name. However, this was seen as a bug, so this change is not treated as a breaking change.)lastname, firstname suffix
where they were previously parsed as middle names (#18, thanks for reporting @adrienne)lastname, firstname, suffix
and lastname, firstname initial, suffix
patternssetMaxSalutationIndex()
getLastnamePrefix()
and pure last names (without prefixes) via getLastname(true)
(#10, thanks @divinenanny)Charles Dickens (20th century)
(#8, thanks @divinenanny)<lastname>, <firstname> <middlename>
scenarios (thanks @francislavoie )