Compare commits

..

No commits in common. "3196877c3709b17edf7a4dfddab46b45ae88e961" and "f384d595e47222199b947cec45d0914724d7c3c2" have entirely different histories.

7 changed files with 102260 additions and 369552 deletions

190169
assets/dictionary.json Normal file → Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

89675
assets/words

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +0,0 @@
'use strict';
const fs = require('fs').promises;
const words = require('./words.json');
const dictionary = require('./dictionary_old.json');
async function init() {
const definitions = Object.fromEntries(words.map((word) => {
const normalizedWord = word.normalize('NFD').replace(/\p{Diacritic}/ug, '').toLowerCase().trim();
const definition = dictionary[normalizedWord];
const singular = normalizedWord.replace(/s$/, '');
const singularDefinition = dictionary[singular] ? `Plural of ${singular}: ${dictionary[singular]}` : null;
return [normalizedWord, definition || singularDefinition];
}));
const string = JSON.stringify(definitions, null, 4);
await fs.writeFile('./dictionary.json', string);
console.log(`Wrote ${Object.keys(definitions).length} words to ./dictionary.json`);
}
init();

File diff suppressed because it is too large Load Diff

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.29.3", "version": "1.29.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.29.3", "version": "1.29.2",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"better-sqlite3": "^8.3.0", "better-sqlite3": "^8.3.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.29.3", "version": "1.29.2",
"description": "Game host for SChat 2-powered chat sites", "description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {