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.
12 lines (11 loc) • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWordList = void 0;
const types_1 = require("@scrabble-solver/types");
const lib_1 = require("../lib");
const FILE_URL = 'https://raw.githubusercontent.com/kamilmielnik/scrabble-dictionaries/master/spanish/file-2017.txt';
const getWordList = async () => {
const words = await (0, lib_1.getTxtWordList)(FILE_URL, types_1.Locale.ES_ES);
return (0, lib_1.transliterateDiacritics)(words, { ignore: ['ñ'] });
};
exports.getWordList = getWordList;