5.3.0 • Published 7 months ago

french-determiners v5.3.0

Weekly downloads
263
License
Apache-2.0
Repository
github
Last release
7 months ago

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): DEFINITE INDEFINITE DEMONSTRATIVE or POSSESSIVE
  • genderOwned: gender of the object (string, mandatory): M for masculine, F for feminine
  • numberOwned: number of the object (string, mandatory): S for singular, P for plural
  • numberOwner: number of the owner of the object (mandatory when POSSESSIVE, put null otherwise): S or P
  • personOwner: person of the owner of the object (mandatory when POSSESSIVE, put null otherwise): 1, 2 or 3
  • when INDEFINITE plural followed by an adjective: adjectiveAfterDet: optional boolean indicating if there is an adjective after the determiner (used to manage de bons restaurants) contentAfterDet: optional string containing the content of what is after (used to manage exception des jeunes gens) ** forceDes: optional boolean indicatif to force des, even when de should be output

Installation

npm install french-determiners

Usage

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

5.3.0

7 months ago

5.2.2

8 months ago

5.2.1

8 months ago

5.2.0

10 months ago

4.4.0

1 year ago

5.0.0

1 year ago

4.3.1

1 year ago

5.1.0

1 year ago

4.3.0

1 year ago

4.2.6

1 year ago

4.2.3

2 years ago

4.2.5

2 years ago

4.2.4

2 years ago

4.2.2

2 years ago

4.2.1

2 years ago

4.0.4

2 years ago

4.0.3

2 years ago

4.2.0

2 years ago

4.1.0

2 years ago

4.1.2

2 years ago

4.1.1

2 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.9

3 years ago

3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.20.2

3 years ago

2.20.1

3 years ago

2.20.0

3 years ago

2.19.0

3 years ago

2.18.1

3 years ago

2.18.0

4 years ago

2.17.2

4 years ago

2.17.1

4 years ago

2.17.0

4 years ago

2.16.10

4 years ago

2.16.9

4 years ago

2.16.7

4 years ago

2.16.8

4 years ago

2.16.6

4 years ago

2.16.5

4 years ago

2.16.4

4 years ago

2.16.3

4 years ago

2.16.2

4 years ago

2.16.1

4 years ago

2.16.0

4 years ago

2.15.4

4 years ago

2.15.3

4 years ago

2.15.2

4 years ago

2.15.1

4 years ago

2.15.0

4 years ago

2.14.3

4 years ago

2.14.2

4 years ago

2.14.1

4 years ago

2.14.0

4 years ago

2.13.0

4 years ago

2.12.3

4 years ago

2.12.2

4 years ago

2.12.0

4 years ago

2.12.1

4 years ago

2.11.0

4 years ago

2.10.2

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.2

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.8.3

4 years ago

2.8.2

4 years ago

2.8.0

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.1

4 years ago

2.6.0

4 years ago

2.6.2

4 years ago

2.5.8

4 years ago

2.5.7

4 years ago

2.5.6

4 years ago

2.5.5

4 years ago

2.5.4

4 years ago

2.5.3

4 years ago

2.5.2

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.3

4 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.7

5 years ago