english-verbs-helper
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -6,3 +6,4 @@ /** | ||
*/ | ||
export declare type Person = 0 | 1 | 2 | 3 | 4 | 5; | ||
export type Tense = 'SIMPLE_PAST' | 'PAST' | 'SIMPLE_PRESENT' | 'PRESENT' | 'SIMPLE_FUTURE' | 'FUTURE' | 'PROGRESSIVE_PAST' | 'PROGRESSIVE_PRESENT' | 'PROGRESSIVE_FUTURE' | 'PERFECT_PAST' | 'PERFECT_PRESENT' | 'PERFECT_FUTURE' | 'PERFECT_PROGRESSIVE_PAST' | 'PERFECT_PROGRESSIVE_PRESENT' | 'PERFECT_PROGRESSIVE_FUTURE' | 'PARTICIPLE_PRESENT' | 'PARTICIPLE_PAST'; | ||
export type Person = 0 | 1 | 2 | 3 | 4 | 5; | ||
interface EnglishGerunds { | ||
@@ -18,3 +19,3 @@ [inf: string]: string; | ||
} | ||
export declare type VerbInfo = string[]; | ||
export type VerbInfo = (string | null)[]; | ||
export interface ExtraParams { | ||
@@ -29,4 +30,4 @@ GOING_TO?: boolean; | ||
export declare function getIngPart(verbsInfo: VerbsInfo, verb: string): string; | ||
export declare function getVerbInfo(verbsInfo: VerbsInfo, verb: string): VerbInfo; | ||
export declare function getConjugation(verbsInfo: VerbsInfo, verb: string, tense: string, person: Person, extraParams: ExtraParams): string; | ||
export declare function getVerbInfo(verbsInfo: VerbsInfo, verb: string): VerbInfo | null; | ||
export declare function getConjugation(verbsInfo: VerbsInfo, verb: string, tense: Tense, person: Person, extraParams: ExtraParams): string; | ||
export {}; |
@@ -9,3 +9,2 @@ "use strict"; | ||
exports.getConjugation = exports.getVerbInfo = exports.getIngPart = exports.mergeVerbsData = void 0; | ||
// https://learningenglish.voanews.com/a/introduction-to-verb-tenses-everyday-grammar/3123576.html | ||
const tenses = [ | ||
@@ -352,5 +351,5 @@ // SIMPLE | ||
} | ||
const isGoingTo = extraParams && extraParams.GOING_TO; | ||
const isNegative = extraParams && extraParams.NEGATIVE; | ||
const isHaveNoDo = isNegative && verb === 'have' && extraParams.NO_DO; | ||
const isGoingTo = extraParams && extraParams.GOING_TO ? true : false; | ||
const isNegative = extraParams && extraParams.NEGATIVE ? true : false; | ||
const isHaveNoDo = isNegative && verb === 'have' && extraParams.NO_DO ? true : false; | ||
const conjugated = getConjugatedVerb(verbsInfo, verb, tense, person, isNegative, isHaveNoDo, isGoingTo); | ||
@@ -357,0 +356,0 @@ if (isNegative && (extraParams.CONTRACT || isHaveNoDo)) { |
{ | ||
"name": "english-verbs-helper", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "English verbs conjugation", | ||
@@ -48,4 +48,4 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"english-verbs-gerunds": "3.1.0", | ||
"english-verbs-irregular": "3.1.0" | ||
"english-verbs-gerunds": "3.2.0", | ||
"english-verbs-irregular": "3.2.0" | ||
}, | ||
@@ -63,3 +63,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "11645a24749c02832b29d6ef71cdf943f89ea81a" | ||
"gitHead": "e4e8082280b13351e9b82b8ff49beebf56103ea9" | ||
} |
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
40417
393