JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q26148F
  • License CC-BY-NC-SA-3.0

Predict the gender of a string's author

Package Exports

  • predictgender

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (predictgender) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

predictgender - Node.js based Gender Prediction

Predict the gender of a string's author.

Input a string, get either "male", or "female" in return.

Usage

const pg = require('predictgender')
let text = "A long string of text...."
let gender = pg(text)

Output

Male = 1
Female = 2
Errors or unknown = 0

Acknowledgements

References

Schwartz, H. A., Eichstaedt, J. C., Kern, M. L., Dziurzynski, L., Ramones, S. M., Agrawal, M., Shah, A., Kosinski, M., Stillwell, D., Seligman, M. E., & Ungar, L. H. (2013). Personality, gender, and age in the language of social media: The Open-Vocabulary Approach. PLOS ONE, 8(9), . . e73791.

Lexicon

Using the gender lexicon data from http://www.wwbp.org/lexica.html

Used under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported licence

Licence

(C) 2017 P. Hughes Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported