Not a Propaganda Machine

    italian-determiners
    TypeScript icon, indicating that this package has built-in type declarations

    4.2.5 • Public • Published

    italian-determiners

    A simple Node.js module that manages Italian determiners.

    For instance il is the definite article for masculine singular.

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

    • determiner type (string, mandatory): DEFINITE INDEFINITE DEMONSTRATIVE
    • gender (string, mandatory): M for masculine, F for feminine
    • number (string, mandatory): S for singular, P for plural
    • dist when DEMONSTRATIVE: NEAR (default) or FAR

    It manages only the most simple form of determiners: for instance DEFINITE M P is always i, never gli. Transforming i into gli (and all other cases) is managed by rosaenlg-filter.

    Installation

    npm install italian-determiners

    Usage

    var determiners = require('italian-determiners');
    
    // il
    console.log(determiners.getDet('DEFINITE', 'M', 'S'));
    
    // una
    console.log(determiners.getDet('INDEFINITE', 'F', 'S'));
    
    // questa
    console.log(determiners.getDet('DEMONSTRATIVE', 'F', 'S', 'NEAR'));

    See test.js for examples.

    dependencies and licences

    no dependency

    Install

    npm i italian-determiners

    DownloadsWeekly Downloads

    356

    Version

    4.2.5

    License

    Apache-2.0

    Unpacked Size

    18.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • ludan.stoeckle