README
french-determiners
A simple Node.js module that contains French determiners.
For instance le is the definite article for masculine singular.
It exposes a single function, getDet
, that takes as arguments:
- determiner type (string, mandatory):
DEFINITE
INDEFINITE
DEMONSTRATIVE
orPOSSESSIVE
- gender of the object (string, mandatory):
M
for masculine,F
for feminine - number of the object (string, mandatory):
S
for singular,P
for plural - number of the owner of the object (mandatory when
POSSESSIVE
, put null otherwise):S
orP
- when
INDEFINITE
plural followed by an adjective: ** optional boolean indicating if there is an adjective after the determiner (used to managede bons restaurants
) ** optional string containing the content of what is after (used to manage exceptiondes jeunes gens
) ** optional boolean indicatif to forcedes
, even whende
should be output
Installation
npm install french-determiners
Usage
var determiners = require('french-determiners');
// le
console.log(determiners.getDet('DEFINITE', 'F', 'S', null, null, null, null));
// ses
console.log(determiners.getDet('POSSESSIVE', 'M', 'P', 'S', null, null, null));
See test.js
for examples.
dependencies and licences
no dependency