Compare commits
2 Commits
5aa5b1852a
...
c2cdd55f2d
Author | SHA1 | Date |
---|---|---|
|
c2cdd55f2d | |
|
34b3269d54 |
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,9 @@ const words = require('./words.json');
|
||||||
const dictionary = require('./dictionary_old.json');
|
const dictionary = require('./dictionary_old.json');
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
const definitions = Object.fromEntries(words.map((word) => {
|
const notNameWords = words.filter((word) => word.charAt(0) === word.charAt(0).toLowerCase()); // don't include names for places, products, people, etc.
|
||||||
|
|
||||||
|
const definitions = Object.fromEntries(notNameWords.map((word) => {
|
||||||
const normalizedWord = word.normalize('NFD').replace(/\p{Diacritic}/ug, '').toLowerCase().trim();
|
const normalizedWord = word.normalize('NFD').replace(/\p{Diacritic}/ug, '').toLowerCase().trim();
|
||||||
const definition = dictionary[normalizedWord];
|
const definition = dictionary[normalizedWord];
|
||||||
const singular = normalizedWord.replace(/s$/, '');
|
const singular = normalizedWord.replace(/s$/, '');
|
||||||
|
|
|
@ -73651,6 +73651,7 @@
|
||||||
"snubbed",
|
"snubbed",
|
||||||
"snubbing",
|
"snubbing",
|
||||||
"snubs",
|
"snubs",
|
||||||
|
"snuck",
|
||||||
"snuff",
|
"snuff",
|
||||||
"snuffbox",
|
"snuffbox",
|
||||||
"snuffboxes",
|
"snuffboxes",
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.29.6",
|
"version": "1.29.7",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.29.6",
|
"version": "1.29.7",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "^8.3.0",
|
"better-sqlite3": "^8.3.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.29.6",
|
"version": "1.29.7",
|
||||||
"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": {
|
||||||
|
|
Loading…
Reference in New Issue