english-determiners
A simple Node.js module that contains English determiners.
For instance the is the definite article for singular.
It exposes a single function, getDet
, that takes 3 arguments:
- determiner type (string, mandatory):
DEFINITE
INDEFINITE
DEMONSTRATIVE
or POSSESSIVE
- when
POSSESSIVE
:
- gender of the owner (string):
M
F
or N
- number of the owner (string):
S
or P
- number of the owned (string):
S
or P
- distance (string, optional, only used for
DEMONSTRATIVE
): NEAR
(this these) or FAR
(that those)
Installation
npm install english-determiners
Usage
var determiners = require('english-determiners');
console.log( determiners.getDet('DEFINITE', null, null, 'S', null) );
console.log( determiners.getDet('DEMONSTRATIVE', null, null, 'P', 'FAR') );
console.log( determiners.getDet('POSSESSIVE', null, 'P', 'S', null) );
See test.js
for examples.
dependencies and licences
no dependency