UNPKG

closewords

Version:

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

6 lines (4 loc) 107 B
function isAlphabetOnly(str) { return /^[A-Za-z-]+$/.test(str); } module.exports = isAlphabetOnly;