3.3.0 • Published 7 months ago

spanish-determiners v3.3.0

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

spanish-determiners

A simple Node.js module that contains Spanish determiners.

For instance el is the definite article for masculine singular.

It exposes a single function, getDet, that takes 3 arguments:

  • determiner type (string, mandatory): DEFINITE INDEFINITE DEMONSTRATIVE or POSSESSIVE
  • gender of the object (string, mandatory): M for masculine, F for feminine
  • number of the object (string, mandatory): S for singular, P for plural
  • the word (noun or adjective) that will come after the determiner; it is used only when type is DEFINITE or INDEFINITE to manage feminine el case (el agua)
  • the type of distance, when DEMONSTRATIVE: PROXIMAL, MEDIAL or DISTAL, PROXIMAL is the default

POSSESSIVE only works for 3rd person S or P (generates su or sus, depending of the possessed object, not the possessor), thus information about the owner is not required.

Installation

npm install spanish-determiners

Usage

const determiners = require('spanish-determiners');

// el
console.log(determiners.getDet('DEFINITE', 'M', 'S', 'hombre', null));

// el
console.log(determiners.getDet('DEFINITE', 'F', 'S', 'agua', null));

// aquella
console.log(determiners.getDet('DEMONSTRATIVE', 'F', 'S', null, 'DISTAL'));

See test.js for examples.

3.3.0

7 months ago

3.2.2

9 months ago

3.2.1

9 months ago

3.2.0

10 months ago

2.4.0

1 year ago

3.0.0

1 year ago

2.3.0

1 year ago

2.3.1

1 year ago

3.1.0

1 year ago

2.2.6

2 years ago

2.2.3

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.1

2 years ago

2.2.2

2 years ago

2.1.2

2 years ago

2.0.3

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.0.4

2 years ago

2.1.0

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago