/kana2mora

Divide a string of Japanese Kana into mora

Primary LanguageTypeScriptCreative Commons Zero v1.0 UniversalCC0-1.0

kana2mora

GitHub Workflow Status npm

Divide a string of Japanese Kana into mora

Installation

$ npm i kana2mora

Usage

You can use ECMAScript modules.

import { katakana2mora } import "kana2mora"

katakana2mora("チョコレート") // ["チョ", "コ", "レ", "ー", "ト"]

You can also use CommonJS modules.

const { katakana2mora } = require("kana2mora")

katakana2mora("チョコレート") // ["チョ", "コ", "レ", "ー", "ト"]

License

CC0