UNPKG

closewords

Version:

A library for finding the most similar word from a list of words, supporting Japanese (including kanji). / 最も似た単語を単語群から検索する日本語(漢字含む)対応のライブラリ

7 lines (6 loc) 144 B
//#region src/isAlphabetOnly.ts function isAlphabetOnly(str) { return /^[A-Za-z-]+$/.test(str); } //#endregion export { isAlphabetOnly as t };