UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

16 lines (15 loc) 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWordListUs = exports.getWordListGb = void 0; const types_1 = require("@scrabble-solver/types"); const lib_1 = require("../lib"); const EN_GB_FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/refs/heads/master/english/sowpods.txt'; const EN_US_FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/refs/heads/master/english/twl06.txt'; const getWordListGb = async () => { return (0, lib_1.getTxtWordList)(EN_GB_FILE_URL, types_1.Locale.EN_GB); }; exports.getWordListGb = getWordListGb; const getWordListUs = async () => { return (0, lib_1.getTxtWordList)(EN_US_FILE_URL, types_1.Locale.EN_US); }; exports.getWordListUs = getWordListUs;