23 lines
712 B
JavaScript
23 lines
712 B
JavaScript
|
/**
|
||
|
* Created by WebStorm.
|
||
|
* User: martin
|
||
|
* Date: 27/07/2020
|
||
|
* Time: 15:34
|
||
|
|
||
|
*/
|
||
|
const jsonfile = require('jsonfile');
|
||
|
|
||
|
const goodWords = ['tsql', 'developer', 'contract', 'web', 'javascript', 'js', 'node', 'es', 'agile', 'nodejs', 'london', 'aws', 'sql', 'postgresql', 'mysql', 'docker', 'ecs', 'automation', 'jslint', 'jshint', 'vuejs', 'vue', 'nginx', 'remotely', 'mvc', 'remote', 'iot', 'mqtt'];
|
||
|
const badWords = ['react', 'redux', 'graphql', 'java', 'reactjs', 'shopify'];
|
||
|
|
||
|
const brain = new Map([]);
|
||
|
|
||
|
for(let i = 0;i < goodWords.length - 1;i++)
|
||
|
brain.set(goodWords[i], 3);
|
||
|
|
||
|
for(let i = 0;i < badWords.length - 1;i++)
|
||
|
brain.set(badWords[i], -5);
|
||
|
|
||
|
jsonfile.writeFileSync('brain.json', [...brain]);
|
||
|
|