1.4.4 • Published 6 years ago

tebakgender v1.4.4

Weekly downloads
17
License
MIT
Repository
github
Last release
6 years ago

TebakGender

Predicting gender (L: male, P: female) based on name. It works very well for common Javanese names.

API

estimation = tebakgender(name[, sanitized])

  • Parameter
    • string name: name to be predicted
    • boolean sanitized: is the name has been sanitized?
  • Return Object
    • gender
    • confidence
    • logProb
      • L
      • P

Example

Script:

const tebakgender = require('tebakgender')
let estimation = tebakgender('Alfan Nur Fauzan')
console.log(estimation)

Output:

{
  gender: 'L',
  confidence: 0.9999999999994883,
  logProb: {
    L: -52.325253924628846,
    P: -80.62619514175651
  }
}

Related Project

Bejometer https://github.com/alpancs/bejometer

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago