genderize

Nim wrapper for the Genderize.io API

Wrapper score 15/100 · tests present · no docs generated

Wraps a native library — check OS Compatibility below for platform-specific linking notes.

Summary

Latest Version 0.1.0
License GPL-3.0-only
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:27

Authors

  • Nemuel Wainaina

Installation

nimble install genderize
choosenim install genderize
git clone https://github.com/nemuelw/genderize

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
genderize - - - - - - -

Dependencies

Package Version Optional
nim >= 1.6 No
jsony - No
results - No

Source

Repository https://github.com/nemuelw/genderize
Homepage https://github.com/nemuelw/genderize
Registry Source nimble_official

README

genderize

Nim wrapper for the Genderize.io API

Installation

nimble install genderize

Usage

Import the package

import genderize

Initialize a client

let client = newGenderizeClient("OPTIONAL_API_KEY")

Predict the gender of a single name

let genderResult = client.predictGender("Nemuel")
if isOk(genderResult):
  echo genderResult.value.gender
else: echo genderResult.error

Predict the genders of multiple names

let gendersResult = client.predictGenders(@["Nemuel", "Kira"])
if isOk(gendersResult):
  for result in gendersResult.value:
    echo result.gender
else: echo gendersResult.error

Both the predictGender and predictGenders methods have an optional second parameter (a 2-letter country ID e.g. KE)

Contributing

Contributions are welcome! Feel free to create an issue or open a pull request.

License

This project is licensed under the terms of the GNU GPL v3.0 License.