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

english-determiners

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

english-determiners

English determiners

  • 2.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
156
decreased by-19.59%
Maintainers
1
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)

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.

Dependancies and licences

no dependancy

Keywords

FAQs

Package last updated on 09 Oct 2019

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