french-determiners v5.4.0
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 argument an object of type:
{
  detType: DetType;
  genderOwned: Genders;
  numberOwned: Numbers;
  numberOwner?: Numbers;
  personOwner?: Persons;
  adjectiveAfterDet?: boolean;
  contentAfterDet?: string;
  forceDes?: boolean;
}where
- detType: determiner type (string, mandatory): 
DEFINITEINDEFINITEDEMONSTRATIVEorPOSSESSIVE - genderOwned: gender of the object (string, mandatory): 
Mfor masculine,Ffor feminine - numberOwned: number of the object (string, mandatory): 
Sfor singular,Pfor plural - numberOwner: number of the owner of the object (mandatory when 
POSSESSIVE, put null otherwise):SorP - personOwner: person of the owner of the object (mandatory when 
POSSESSIVE, put null otherwise): 1, 2 or 3 - when 
INDEFINITEplural followed by an adjective: adjectiveAfterDet: optional boolean indicating if there is an adjective after the determiner (used to managede bons restaurants) contentAfterDet: optional string containing the content of what is after (used to manage exceptiondes jeunes gens) ** forceDes: optional boolean indicatif to forcedes, even whendeshould be output 
Installation
npm install french-determinersUsage
var determiners = require('french-determiners');
// la
console.log(determiners.getDet({ detType: 'DEFINITE', genderOwned: 'F', numberOwned: 'S' }));
// ses
console.log(
  determiners.getDet({ detType: 'POSSESSIVE', genderOwned: 'M', numberOwned: 'P', numberOwner: 'S', personOwner: 3 }),
);See test.js for examples.
dependencies and licences
no dependency
10 months ago
11 months ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago