Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

infer-gender

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infer-gender - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

8

index.js

@@ -23,3 +23,3 @@ const fs = require('fs')

exports.extractName = fullName => (
exports.extractName = (fullName, onlyFirst = false) => (
removeDiacritics(fullName)

@@ -30,7 +30,7 @@ .toLowerCase()

// Return the first word that matches a name
.find(name => name in names)
.find(name => name in names || onlyFirst)
)
exports.infer = fullName => (
names[exports.extractName(fullName)] || UNKNOWN
exports.infer = (fullName, onlyFirst = false) => (
names[exports.extractName(fullName, onlyFirst)] || UNKNOWN
)
{
"name": "infer-gender",
"version": "1.2.0",
"version": "1.2.1",
"description": "Infer the gender of a name based on a large list of names, case insensitive and removes diacritics",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc