Novel Preposterous Mockery

    romaji-fuzzy-search
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    romaji-fuzzy-search

    Run tests

    This module generates a regular expression for "Romaji Fuzzy Search".

    🤔 "Romaji Fuzzy Search"?

    It's a original concept.

    Allows you to search Japanese Hiragana and Katakana from a query consisting of alphabets.

    🚀 Installation

    npm install romaji-fuzzy-search
    

    🐱 Usage

    const {convertToRegExp} = require('romaji-fuzzy-search')
    const query = 'kyayaak'
    const regExp = convertToRegExp('kyayaak')  // -> "(?:kya|きゃ|キャ)(?:ya|や|ヤ)(?:a|あ|ア)k"
    const matcher = new RegExp(regExp, 'i')  // I think it's better to specify the "i" option.

    Install

    npm i romaji-fuzzy-search

    DownloadsWeekly Downloads

    1

    Version

    1.1.0

    License

    SEE LICENSE IN https://github.com/kjirou/romaji-fuzzy-search/blob/main/LICENSE

    Unpacked Size

    20.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • kjirou