Skip to content

Tankōbon / shared/title-parsing / splitPersonName

Function: splitPersonName() ​

splitPersonName(full): PersonName

Defined in: shared/title-parsing.ts:78

Splits a person's full name as the APIs give it. "Last, First" is honoured; otherwise the last word is the last name, extended to the left over particles ("de", "van"…). A single word (a pen name like "Hergé") is a last name with no first name.

Parameters ​

full ​

string

Returns ​

PersonName