A JavaScript implementation of ke2daira
$ npm i ke2daira
// as ECMAScript modules
import { ke2dairanization } from "ke2daira"
// or as CommonJS modules
const { ke2dairanization } = require("ke2daira")
ke2dairanization("松平 健")
.then((ke2dairanized) => {
console.log(ke2dairanized) // "ケツダイラ マン"
})
ke2daira.js
only supports switching the head of the first word and the one of the last word.
ke2dairanization("加藤 あい")
is equal toアトウ カイ
butke2dairanization("阿藤 快")
is not equal toカトウ アイ
.ke2dairanization("阿藤 快")
wrongly turns intoコトウ アコロヨ
MIT