rosaenlg-gender-es
Version:
Get the gender (masculine, feminine) for each noun in Spanish.
43 lines (27 loc) • 786 B
Markdown
<!--
Copyright 2019 Ludan Stoecklé, 2016 Samuel Westrich
SPDX-License-Identifier: MIT
-->
> Finds the gender of Spanish nouns.
Is a fork of [gender-es](https://github.com/swestrich/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.
```
$ npm install --save rosaenlg-gender-es
```
```js
var gender = require('rosaenlg-gender-es');
gender('carne');
// -> 'f'
```
Type: `string`
Get the gender of the Spanish noun.