Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vatsel/Python-Name-Parser

Guess last and first names in strings. Select by popularity or maximum char usage.
https://github.com/vatsel/Python-Name-Parser

Last synced: about 1 month ago
JSON representation

Guess last and first names in strings. Select by popularity or maximum char usage.

Awesome Lists containing this project

README

        

Python3 Name Parser
-------
Get last and first name information from email addresses, usernames, etc

Features
********
- Built-in Dictionary of 150,000+ names and their popularity rankings.
- Distinguishes between last and first names.
- Last and First name sequence detection: Can detect invalid combinations of Last-First-Last name sequences and select the best option.
- Search by Popularity: best for mangled strings.
- Search by Longest Names: best for email addresses, or generally valid data.
- Uses Regex to extract letter sequences, breaking the input into words and considerably increasing matching probability.
- Worst case runtime of O(n**2) not counting the single regex operation above (where n = number of chars).
- Actual scan time is under a second, even for strings with hundreds of characters.

Usage
********
Simply call NameParser.Scan(). Input can be a string or a list of strings.