Null Pointer Micromanagement

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

    4.2.5 • Public • Published

    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)
    • boolean to force usage of the when DEFINITE plural (default is false: no article when definite plural)

    Installation

    npm install english-determiners

    Usage

    var determiners = require('english-determiners');
    
    // the
    console.log( determiners.getDet('DEFINITE', null, null, 'S', null) );
    
    // those
    console.log( determiners.getDet('DEMONSTRATIVE', null, null, 'P', 'FAR') );
    
    // their
    console.log( determiners.getDet('POSSESSIVE', null, 'P', 'S', null) );

    See test.js for examples.

    dependencies

    no dependency

    Install

    npm i english-determiners

    DownloadsWeekly Downloads

    309

    Version

    4.2.5

    License

    Apache-2.0

    Unpacked Size

    21.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • ludan.stoeckle