gta and more words

This commit is contained in:
2026-10-30 15:16:17 -04:00
parent c2cb12c700
commit 4906d14737
10 changed files with 345 additions and 226 deletions

View File

@@ -1,5 +1,6 @@
import fs from 'node:fs';
import wordlistEnglish from 'wordlist-english';
import { extraWords } from './extra-words.mjs';
const COMBO_WORDS_FILE = new URL('./combo-words.txt', import.meta.url);
@@ -64,6 +65,10 @@ export function buildWordSet({ includeComboWords = false } = {}) {
for (const w of PROPER_WORD_ALLOWLIST) {
if (isAcceptable(w)) set.add(w);
}
for (const item of extraWords) {
const w = item.word.toLowerCase();
if (isAcceptable(w)) set.add(w);
}
if (includeComboWords) {
for (const w of loadComboWords()) {
if (isAcceptable(w)) set.add(w);