rosaenlg-commons
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -45,3 +45,3 @@ "use strict"; | ||
for (const voyelleSimpleMinuscule of voyellesSimplesMinuscules) { | ||
res = res + correspondances[voyelleSimpleMinuscule]; | ||
res = (res + correspondances[voyelleSimpleMinuscule]); | ||
} | ||
@@ -48,0 +48,0 @@ return res; |
@@ -6,7 +6,7 @@ /** | ||
*/ | ||
declare type WordData = any; | ||
type WordData = any; | ||
interface WordsData { | ||
[key: string]: WordData; | ||
} | ||
declare type AdjectiveData = any; | ||
type AdjectiveData = any; | ||
interface AdjectivesData { | ||
@@ -24,3 +24,3 @@ [key: string]: AdjectiveData; | ||
private iso2; | ||
constructor(iso2: string, validPropsWord: string[], validPropsAdj: string[]); | ||
constructor(iso2: string | null, validPropsWord: string[], validPropsAdj: string[]); | ||
setEmbeddedWords(embeddedWords: WordsData): void; | ||
@@ -27,0 +27,0 @@ setEmbeddedAdj(embeddedAdjs: AdjectivesData): void; |
@@ -16,11 +16,11 @@ /** | ||
export { buildLanguageCommon, getIso2fromLocale } from './helper'; | ||
export declare type VerbInfo = any; | ||
export type VerbInfo = any; | ||
export interface VerbsInfo { | ||
[key: string]: VerbInfo; | ||
} | ||
export declare type WordInfo = any; | ||
export type WordInfo = any; | ||
export interface WordsInfo { | ||
[key: string]: WordInfo; | ||
} | ||
export declare type AdjectiveInfo = any; | ||
export type AdjectiveInfo = any; | ||
export interface AdjectivesInfo { | ||
@@ -27,0 +27,0 @@ [key: string]: AdjectiveInfo; |
@@ -9,10 +9,11 @@ /** | ||
export declare abstract class LanguageCommon { | ||
iso2: string; | ||
readonly validPropsWord: string[]; | ||
readonly validPropsAdj: string[]; | ||
allPunctList: string; | ||
constants: Constants; | ||
dictManager: DictManager; | ||
protected iso2: string | null; | ||
protected validPropsWord: string[] | null; | ||
protected validPropsAdj: string[] | null; | ||
protected allPunctList: string; | ||
constants: Constants | null; | ||
dictManager: DictManager | null; | ||
init(): void; | ||
setIso2(_iso2: string): void; | ||
getIso2(): string | null; | ||
} |
@@ -13,3 +13,8 @@ "use strict"; | ||
constructor() { | ||
this.iso2 = null; | ||
this.validPropsWord = null; // MUST override | ||
this.validPropsAdj = null; // MUST override | ||
this.allPunctList = Constants_1.Constants.stdPunctList; // override e.g. for Spanish ¡¿ | ||
this.constants = null; | ||
this.dictManager = null; | ||
} | ||
@@ -26,4 +31,7 @@ init() { | ||
} | ||
getIso2() { | ||
return this.iso2; | ||
} | ||
} | ||
exports.LanguageCommon = LanguageCommon; | ||
//# sourceMappingURL=LanguageCommon.js.map |
@@ -8,5 +8,3 @@ /** | ||
export declare class LanguageCommonEnglish extends LanguageCommon { | ||
iso2: string; | ||
validPropsWord: string[]; | ||
validPropsAdj: string[]; | ||
constructor(); | ||
} |
@@ -12,3 +12,3 @@ "use strict"; | ||
constructor() { | ||
super(...arguments); | ||
super(); | ||
this.iso2 = 'en'; | ||
@@ -15,0 +15,0 @@ this.validPropsWord = ['plural', 'aan']; |
@@ -8,6 +8,3 @@ /** | ||
export declare class LanguageCommonFrench extends LanguageCommon { | ||
iso2: string; | ||
validPropsWord: string[]; | ||
validPropsAdj: string[]; | ||
allPunctList: string; | ||
constructor(); | ||
} |
@@ -13,3 +13,3 @@ "use strict"; | ||
constructor() { | ||
super(...arguments); | ||
super(); | ||
this.iso2 = 'fr'; | ||
@@ -16,0 +16,0 @@ this.validPropsWord = ['plural', 'gender', 'contracts']; |
@@ -8,5 +8,3 @@ /** | ||
export declare class LanguageCommonGerman extends LanguageCommon { | ||
iso2: string; | ||
validPropsWord: string[]; | ||
validPropsAdj: string[]; | ||
constructor(); | ||
} |
@@ -12,3 +12,3 @@ "use strict"; | ||
constructor() { | ||
super(...arguments); | ||
super(); | ||
this.iso2 = 'de'; | ||
@@ -15,0 +15,0 @@ this.validPropsWord = ['G', 'DAT', 'GEN', 'AKK', 'NOM']; // TODO check 1 level deeper SIN PLU |
@@ -8,5 +8,3 @@ /** | ||
export declare class LanguageCommonItalian extends LanguageCommon { | ||
iso2: string; | ||
validPropsWord: string[]; | ||
validPropsAdj: string[]; | ||
constructor(); | ||
isConsonneImpure(word: string): boolean; | ||
@@ -13,0 +11,0 @@ isIFollowedByVowel(word: string): boolean; |
@@ -12,3 +12,3 @@ "use strict"; | ||
constructor() { | ||
super(...arguments); | ||
super(); | ||
this.iso2 = 'it'; | ||
@@ -15,0 +15,0 @@ this.validPropsWord = ['G', 'S', 'P']; |
@@ -8,3 +8,4 @@ /** | ||
export declare class LanguageCommonOther extends LanguageCommon { | ||
constructor(); | ||
setIso2(iso2: string): void; | ||
} |
@@ -11,2 +11,5 @@ "use strict"; | ||
class LanguageCommonOther extends LanguageCommon_1.LanguageCommon { | ||
constructor() { | ||
super(); | ||
} | ||
setIso2(iso2) { | ||
@@ -13,0 +16,0 @@ this.iso2 = iso2; |
@@ -8,6 +8,3 @@ /** | ||
export declare class LanguageCommonSpanish extends LanguageCommon { | ||
iso2: string; | ||
validPropsWord: string[]; | ||
validPropsAdj: string[]; | ||
allPunctList: string; | ||
constructor(); | ||
} |
@@ -13,3 +13,3 @@ "use strict"; | ||
constructor() { | ||
super(...arguments); | ||
super(); | ||
this.iso2 = 'es'; | ||
@@ -16,0 +16,0 @@ this.validPropsWord = ['plural', 'gender']; |
{ | ||
"name": "rosaenlg-commons", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Common technical elements for RosaeNLG", | ||
@@ -53,3 +53,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "11645a24749c02832b29d6ef71cdf943f89ea81a" | ||
"gitHead": "e4e8082280b13351e9b82b8ff49beebf56103ea9" | ||
} |
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
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
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
43144
562