Human Name Parser API - Dart/Flutter Client
Human Name Parser splits full name strings into first, middle, and last names, titles, nicknames, and suffixes. It also generates initials directly from the detected components.
This is the Dart/Flutter client for the Human Name Parser API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_humannameparser: ^1.2.5
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_humannameparser/apiverve_humannameparser.dart';
void main() async {
final client = HumannameparserClient('YOUR_API_KEY');
try {
final response = await client.execute({
'name': 'MR. MARTINO PETROS DE FLORENCE (TINO) Jr.'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"name": "MR. MARTINO PETROS DE FLORENCE (TINO) Jr.",
"parsed": {
"title": "Mr.",
"first": "Martino",
"middle": "Petros",
"last": "de Florence",
"nick": "Tino",
"suffix": "Jr."
},
"initials": "MPF",
"formalName": "Mr. de Florence, Martino P. Jr."
}
}
API Reference
- API Home: Human Name Parser API
- Documentation: docs.apiverve.com/ref/humannameparser
Authentication
All requests require an API key. Get yours at apiverve.com.
License
MIT License - see LICENSE for details.
Built with Dart for APIVerve
Libraries
- apiverve_humannameparser
- Human Name Parser API client for Dart/Flutter