Skip to content

ludans/gender-es

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gender-es

Finds the gender of Spanish nouns.

Installation

$ npm install --save gender-es

Usage

var gender = require('gender-es');

gender.genderForNoun('carne');
// -> 'f'

gender.isFeminine('récord');
// -> false

gender.isMasculine('felicidad');
// -> false

gender.definiteArticle('calle');
// -> 'la'

gender.addDefiniteArticle('miel');
// -> 'la miel'

gender.indefiniteArticle('moto');
// -> una;

gender.addIndefiniteArticle('mapa',5); {
// -> 'unos mapa';

API

genderForNoun(str)

str

Type: string

Get the gender of the Spanish noun.

isMasculine(str)

str

Type: string

Is the Spanish noun masculine?

isFeminine(str)

str

Type: string

Is the Spanish noun feminine?

indefiniteArticle(str[,amount])

str

Type: string

Gets the indefinite article for the word (un,una,unos,unas).

definiteArticle(str[,amount])

str

Type: string

Gets the definite article for the word (el,la,los,las).

addIndefiniteArticle(str[,amount])

str

Type: string

Prefixes the indefinite article for the word (un,una,unos,unas) to the word.

addDefiniteArticle(str[,amount])

str

Type: string

Prefixes the definite article for the word (el,la,los,las).

About

Get the gender of nouns in Spanish

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%