Skip to content

Very simple piece of Elixir code that detects gender by first name :)

Notifications You must be signed in to change notification settings

alexfilatov/gender_detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenderDetect

Simple API for detecting gender by first name.

API created based on brilliant datasets by mbejda:

More datasets are here: http://mbejda.github.io

Demo:

https://gender-detect-ex.herokuapp.com/detect?name=christina

Response like:
{"gender":"female","name":"christina","probability":1.0}

Installation

$ git clone https://github.com/alexfilatov/gender_detect.git
$ cd gender_detect
$ mix deps.get
$ iex -S mix

Now you have it running on your http://localhost:4000 and you can make requests:

http://localhost:4000/detect?name=christina

Contributing is sexy

  • Fork the repo on GitHub
  • Clone the project to your own machine
  • Commit changes to your own branch
  • Push your work back up to your fork
  • Submit a Pull request so that we can review your changes

About

Very simple piece of Elixir code that detects gender by first name :)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages