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.
17 lines (12 loc) • 602 B
text/typescript
import { Locale } from '@scrabble-solver/types';
import { getTxtWordList } from '../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';
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);
};