german-determiners
A simple Node.js module that contains German determiners. For instance der is the definite article for masculine singular.
It exposes a single function, getDet
, that takes 6 arguments:
- determiner type (string, mandatory):
DEFINITE
INDEFINITE
DEMONSTRATIVE
orPOSSESSIVE
- case (string, mandatory):
NOMINATIVE
ACCUSATIVE
DATIVE
orGENITIVE
- when type is
POSSESSIVE
, info about the owner (for other det types put null)- gender:
M
F
orN
- number:
S
orP
- gender:
- info about the owned (mandatory):
- gender:
M
F
orN
- number:
S
orP
- gender:
Installation
npm install german-determiners
Usage
var determiners = require('german-determiners');
// der
console.log( determiners.getDet('DEFINITE', 'NOMINATIVE', null, null, 'M', 'S') );
// dieser
console.log( determiners.getDet('DEMONSTRATIVE', 'GENITIVE', null, null, 'M', 'P') );
// seines
console.log( determiners.getDet('POSSESSIVE', 'GENITIVE', 'N', 'S', 'M', 'S') );
See test.js
for examples.
dependencies and licences
no dependency