jasonpriem / human-name-parser
Takes human names of arbitrary complexity and various wacky formats and parses them out.
Installs: 113 428
Dependents: 0
Suggesters: 0
Security: 0
Stars: 109
Watchers: 9
Forks: 42
Open Issues: 7
This package is not auto-updated.
Last update: 2025-05-06 09:41:07 UTC
README
Name: HumanNameParse.php
Version: 0.2
Date: 6 Sept. 2010
Author: Jason Priem jason@jasonpriem.com
Website: http://jasonpriem.com/human-name-parse
License: http://www.opensource.org/licenses/mit-license.php
Description
Takes human names of arbitrary complexity and various wacky formats like:
- J. Walter Weatherman
- de la Cruz, Ana M.
- James C. ('Jimmy') O'Dell, Jr.
and parses out the:
- leading initial (Like "J." in "J. Walter Weatherman")
- first name (or first initial in a name like 'R. Crumb')
- nicknames (like "Jimmy" in "James C. ('Jimmy') O'Dell, Jr.")
- middle names
- last name (including compound ones like "van der Sar' and "Ortega y Gasset"), and
- suffix (like 'Jr.', 'III')