Skip to main content

apiverve_humannameparser 1.2.5 copy "apiverve_humannameparser: ^1.2.5" to clipboard
apiverve_humannameparser: ^1.2.5 copied to clipboard

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.

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.

pub package License: MIT

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 #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
130
points
861
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_humannameparser