Index: gc_lang/fr/modules-js/conj.js ================================================================== --- gc_lang/fr/modules-js/conj.js +++ gc_lang/fr/modules-js/conj.js @@ -5,12 +5,12 @@ ${map} const conj = { - _lVtyp: null, - _lTags: null, + _lVtyp: [], + _lTags: [], _dPatternConj: {}, _dVerb: {}, init: function (sJSONData) { try { Index: gc_lang/fr/modules-js/mfsp.js ================================================================== --- gc_lang/fr/modules-js/mfsp.js +++ gc_lang/fr/modules-js/mfsp.js @@ -8,12 +8,12 @@ } const mfsp = { // list of affix codes - _lTagMiscPlur: null, - _lTagMasForm: null, + _lTagMiscPlur: [], + _lTagMasForm: [], // dictionary of words with uncommon plurals (-x, -ux, english, latin and italian plurals) and tags to generate them _dMiscPlur: {}, // dictionary of feminine forms and tags to generate masculine forms (singular and plural) _dMasForm: {}, @@ -102,12 +102,17 @@ console.log("Error: Impossible d’initialiser le module mfsp"); } if (typeof(exports) !== 'undefined') { + exports._lTagMiscPlur = mfsp._lTagMiscPlur; + exports._lTagMasForm = mfsp._lTagMasForm; + exports._dMiscPlur = mfsp._dMiscPlur; + exports._dMasForm = mfsp._dMasForm; + exports.init = mfsp.init; exports.isFemForm = mfsp.isFemForm; exports.getMasForm = mfsp.getMasForm; exports.hasMiscPlural = mfsp.hasMiscPlural; exports.getMiscPlural = mfsp.getMiscPlural; exports._whatSuffixCode = mfsp._whatSuffixCode; exports._modifyStringWithSuffixCode = mfsp._modifyStringWithSuffixCode; } Index: gc_lang/fr/modules-js/phonet.js ================================================================== --- gc_lang/fr/modules-js/phonet.js +++ gc_lang/fr/modules-js/phonet.js @@ -4,13 +4,13 @@ var helpers = require("resource://grammalecte/helpers.js"); } const phonet = { - _dWord: null, - _lSet: null, - _dMorph: null, + _dWord: {}, + _lSet: [], + _dMorph: {}, init: function (sJSONData) { try { let _oData = JSON.parse(sJSONData); this._dWord = helpers.objectToMap(_oData.dWord);