Git Product home page Git Product logo

kana2ipa's Introduction

kana2ipa

Actions Status npm version

「ひらがな」または「カタカナ」を音声記号(International Phonetic Alphabet (IPA)) に変換するコマンドです。
Node.jsのライブラリとしても使用できます。

Description

「ひらがな」または「カタカナ」を音声記号(IPA)に変換します。
現代の標準的な日本語話術者の発音を想定した変換になります。

変換のルールは独自調査により作成しているため、
正確な発音である保証はありません。

Install

$ npm i -g kana2ipa

Usage on CLI

$ kana2ipa こんにちわ
koɴɲit͡ɕiɰa

$ kana2ipa ツイッター
tsɯittaː

$ kana2ipa コンパンジャンドラム
kompaɴʤandoɾamɯ

Usage Library for Node.js

const converter = require('converter')

console.log(converter.kana2ipa('コンニチワ'))
// koɴɲit͡ɕiɰa
console.log(converter.kana2ipa('こんぱんじゃんどらむ'))
// kompaɴʤandoɾamɯ

Feature

  • kana to X-SAMPA
    • TBD

kana2ipa's People

Contributors

amanoese avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xianchao-wu

kana2ipa's Issues

I think here is a ñ

in converter.js
.replace(/(.)N(a|i|ɯ|e|o|s|h|j|w)/ug, '$1$1\u0303$2')
I think it may be
.replace(/(.)N(a|i|ɯ|e|o|s|h|j|w)/ug, '$1n\u0303$2')
or
.replace(/(.)N(a|i|ɯ|e|o|s|h|j|w)/ug, '$1ñ$2')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.