rosaenlg-commons
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -44,4 +44,4 @@ "use strict"; | ||
let res = voyellesSimplesMinuscules; | ||
for (let i = 0; i < voyellesSimplesMinuscules.length; i++) { | ||
res = res + correspondances[voyellesSimplesMinuscules[i]]; | ||
for (const voyelleSimpleMinuscule of voyellesSimplesMinuscules) { | ||
res = res + correspondances[voyelleSimpleMinuscule]; | ||
} | ||
@@ -48,0 +48,0 @@ return res; |
@@ -51,4 +51,3 @@ "use strict"; | ||
const keys = Object.keys(adjData); | ||
for (let i = 0; i < keys.length; i++) { | ||
const key = keys[i]; | ||
for (const key of keys) { | ||
this.checkProp('adj', key); | ||
@@ -63,4 +62,3 @@ this.adjsData[adj][key] = adjData[key]; | ||
const keys = Object.keys(wordData); | ||
for (let i = 0; i < keys.length; i++) { | ||
const key = keys[i]; | ||
for (const key of keys) { | ||
this.checkProp('word', key); | ||
@@ -67,0 +65,0 @@ this.wordsData[word][key] = wordData[key]; |
@@ -20,6 +20,4 @@ "use strict"; | ||
const begins = ['ps', 'pn', 'gn', 'x', 'z']; | ||
for (let i = 0; i < begins.length; i++) { | ||
//console.log(`${word} start with ${begins[i]}?`); | ||
if (wordLc.startsWith(begins[i])) { | ||
//console.log(`isConsonneImpure ${word}? => true`); | ||
for (const begin of begins) { | ||
if (wordLc.startsWith(begin)) { | ||
return true; | ||
@@ -31,6 +29,4 @@ } | ||
if (regexSImpur.test(wordLc)) { | ||
//console.log(`isConsonneImpure ${word}? => true`); | ||
return true; | ||
} | ||
//console.log(`isConsonneImpure ${word}? => false`); | ||
return false; | ||
@@ -37,0 +33,0 @@ } |
{ | ||
"name": "rosaenlg-commons", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Common technical elements for RosaeNLG", | ||
@@ -53,3 +53,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "a501d0473fdc12407624be4eac58618e1702dcdc" | ||
"gitHead": "dfcd8d00b365feeb9aeda8ab0b311f12b94ac630" | ||
} |
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
42339
553