Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

english-determiners

Package Overview
Dependencies
Maintainers
0
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

english-determiners

English determiners

  • 5.3.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
187
decreased by-18.7%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 29 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc