Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 2 months ago
JSON representation
Guess last and first names in strings. Select by popularity or maximum char usage.
- Host: GitHub
- URL: https://github.com/vatsel/Python-Name-Parser
- Owner: vatsel
- License: mit
- Created: 2015-06-15T12:01:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-15T12:32:49.000Z (over 9 years ago)
- Last Synced: 2024-08-04T04:04:25.609Z (5 months ago)
- Language: Python
- Size: 1.22 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - Python-Name-Parser - Guess last and first names in strings. Select by popularity or maximum char usage. (Python)
README
Python3 Name Parser
-------
Get last and first name information from email addresses, usernames, etcFeatures
********
- 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.