in src/processors/CodeGenNameConventions.js [57:79]
initDecodeDictionary(words: string[]) {
const counter = {};
words.forEach(val => {
const w = val.toLowerCase();
counter[w] = (counter[w] || 0) + 1;
const pw = pluralize(w);
if (pw !== w) {
counter[pw] = (counter[pw] || 0) + 0.5;
}
});
let maxCnt = 1;
for (const w in counter) {
if (counter[w] > maxCnt) {
maxCnt = counter[w];
}
}
_decodeDict = merge(true, _decodeDictBase);
for (const w in counter) {
_decodeDict[w] = counter[w] / maxCnt;
}
},