spanish-determiners v3.3.0
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):
DEFINITEINDEFINITEDEMONSTRATIVEorPOSSESSIVE - gender of the object (string, mandatory):
Mfor masculine,Ffor feminine - number of the object (string, mandatory):
Sfor singular,Pfor plural - the word (noun or adjective) that will come after the determiner; it is used only when type is
DEFINITEorINDEFINITEto manage feminineelcase (el agua) - the type of distance, when
DEMONSTRATIVE:PROXIMAL,MEDIALorDISTAL,PROXIMALis 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-determinersUsage
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.
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
6 years ago
6 years ago
6 years ago
6 years ago