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.
15 lines (10 loc) • 510 B
text/typescript
import { Locale } from '@scrabble-solver/types';
import { getTxtWordList } from '../lib';
const EN_GB_FILE_URL = 'https://www.wordgamedictionary.com/sowpods/download/sowpods.txt';
const EN_US_FILE_URL = 'https://www.wordgamedictionary.com/twl06/download/twl06.txt';
export const getWordListGb = async (): Promise<string[]> => {
return getTxtWordList(EN_GB_FILE_URL, Locale.EN_GB);
};
export const getWordListUs = async (): Promise<string[]> => {
return getTxtWordList(EN_US_FILE_URL, Locale.EN_US);
};