UNPKG

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.

8 lines (5 loc) 276 B
import { transliterate } from 'transliteration'; import { unique } from './unique'; export const transliterateDiacritics = (words: string[], options?: Parameters<typeof transliterate>[1]): string[] => { return unique(words.map((word) => transliterate(word, options))); };