Skip to content

manu-urba/dart-genderize-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dart-genderize-api pub package

Genderize API wrapper for Dart. This package will help you to determinate the gender of a person from his name.

Basic usage

import 'package:genderize/genderize.dart';

void main() async {
  /// Initializing an instance of [Genderize]
  var gen = Genderize();

  /// Getting a [Gender] of [name] "Manuel".
  var gender = await gen.getGender('Manuel');

  print('You are ${gender.gender}'); //output: "You are male"

  gen.close();
}

How to start

1. Initialize an istance of "Genderize" class:

  var gen = Genderize();

2. Fetch any data you need from the instance (more informations are specified in the documentation).

3. Close the Genderize client to save dart process performances.

 gen.close();

Documentation

https://pub.dev/documentation/genderize/latest/genderize/genderize-library.html

More info