UNPKG

scrabble-solver

Version:

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

12 lines (11 loc) 521 B
"use strict"; 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/Thecoolsim/French-Scrabble-ODS8/main/French%20ODS%20dictionary.txt'; const getWordList = async () => { const words = await (0, lib_1.getTxtWordList)(FILE_URL, types_1.Locale.FR_FR); return (0, lib_1.transliterateDiacritics)(words); }; exports.getWordList = getWordList;