english-determiners
Advanced tools
Comparing version 2.16.5 to 2.16.6
@@ -5,2 +5,2 @@ export declare type Genders = 'M' | 'F' | 'N'; | ||
export declare type DetType = 'DEFINITE' | 'INDEFINITE' | 'DEMONSTRATIVE' | 'POSSESSIVE'; | ||
export declare function getDet(detType: DetType, genderOwner: Genders, numberOwner: Numbers, numberOwned: Numbers, dist: Dist): string; | ||
export declare function getDet(detType: DetType, genderOwner: Genders, numberOwner: Numbers, numberOwned: Numbers, dist: Dist, forceArticlePlural: boolean): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getDet = void 0; | ||
function getDet(detType, genderOwner, numberOwner, numberOwned, dist) { | ||
function getDet(detType, genderOwner, numberOwner, numberOwned, dist, forceArticlePlural) { | ||
if (detType != 'DEFINITE' && detType != 'INDEFINITE' && detType != 'DEMONSTRATIVE' && detType != 'POSSESSIVE') { | ||
@@ -40,3 +40,8 @@ const err = new Error(); | ||
case 'P': { | ||
return ''; | ||
if (forceArticlePlural) { | ||
return 'the'; | ||
} | ||
else { | ||
return ''; | ||
} | ||
} | ||
@@ -43,0 +48,0 @@ } |
{ | ||
"name": "english-determiners", | ||
"version": "2.16.5", | ||
"version": "2.16.6", | ||
"description": "English determiners", | ||
@@ -52,3 +52,3 @@ "main": "dist/index.js", | ||
"license": "MIT", | ||
"gitHead": "77679387e09adc51a73c453df0791030146864f4" | ||
"gitHead": "b50fe4d70a72415c198cfe6bc2a273e0a83a780f" | ||
} |
@@ -15,2 +15,3 @@ # english-determiners | ||
* 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) | ||
@@ -17,0 +18,0 @@ ## Installation |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63682
620
42