rosaenlg-gender-es
v4.3.0
Published
Get the gender (masculine, feminine) for each noun in Spanish.
Downloads
908
Maintainers
Readme
rosaenlg-gender-es
Finds the gender of Spanish nouns.
Is a fork of gender-es with:
- some exceptions added https://en.wiktionary.org/wiki/Category:Spanish_nouns_with_irregular_gender
- features removed like determiners
- added neutral:
- when can be either m or f e.g. 'estratega'
- 'disco' is returned as neutral as depending the meaning it can be either m or f, same for 'panda' etc.
Installation
$ npm install --save rosaenlg-gender-es
Usage
var gender = require('rosaenlg-gender-es');
gender('carne');
// -> 'f'
API
genderForNoun(str)
str
Type: string
Get the gender of the Spanish noun.