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.
11 lines (7 loc) • 405 B
text/typescript
import { Locale } from '@scrabble-solver/types';
import { getTxtWordList, transliterateDiacritics } from '../lib';
const FILE_URL = 'https://raw.githubusercontent.com/Thecoolsim/French-Scrabble-ODS8/main/French%20ODS%20dictionary.txt';
export const getWordList = async (): Promise<string[]> => {
const words = await getTxtWordList(FILE_URL, Locale.FR_FR);
return transliterateDiacritics(words);
};