Get the gender (masculine, feminine) for each noun in french.
npm install gender-fr-node10> Finds the gender of french nouns.
$ npm install --save gender-fr-node10
`Usage
`js
var gender = require('gender-fr');gender.gendersForNoun('actrice', function(err, genders) {
if (err) {
throw err;
}
//genders=> ['f']
});
gender.isFeminine('maison', function(err, rBool) {
if (err) {
throw err;
}
//rBool=> true
});
gender.isMasculine('acteur', function(err, rBool) {
if (err) {
throw err;
}
//rBool=> true
});
gender.definiteArticle('héro', function(err, article) {
if (err) {
throw err;
}
//article=> le
});
gender.addDefiniteArticle('hystérie', function(err, string) {
if (err) {
throw err;
}
//string=> l'hystérie;
});
gender.indefiniteArticle('fruit', function(err, article) {
if (err) {
throw err;
}
//article=> un;
});
gender.addIndefiniteArticle('lampe', function(err, string) {
if (err) {
throw err;
}
//string=> une lampe;
});
`API
$3
#### str
Type:
stringGet the gender of the french noun.
$3
#### str
Type:
stringIs the french noun masculine?
$3
#### str
Type:
stringIs the french noun feminine?
$3
#### str
Type:
stringGets the indefinite article for the word (un,une).
$3
#### str
Type:
stringGets the definite article for the word (l',le,la).
$3
#### str
Type:
stringPrefixes the indefinite article for the word (un,une) to the word.
$3
#### str
Type:
string`Prefixes the definite article for the word (l',le,la).