/pyboin

Pure-Python Japanese character interconverter for hiragana(katakana) -> vowel.

Primary LanguagePythonMIT LicenseMIT

pyboin

PyPi MIT License

pyboin is Pure-Python Japanese character interconverter for Hiragana and Vowel.

「こんにちは」 -> 「おんいいあ」

Requirement

  • Python3

Usage

import pyboin

# Argument 'cv' may be omitted.
# Specify katakana or hiragana as the first argument.
pyboin.text2boin('こんにちは', cv='katakana')
# => 'オンイイア'

pyboin.text2boin('こんにちは', cv='hiragana')
# => 'おんいいあ'

pyboin.convert_vowel('ス', 'ア')
# => 'サ'
pyboin.convert_vowel('カ', 'オ')
# => 'コ'

pyboin.romanize('a', 's')
# => 'サ'

Installation

$ pip install pyboin

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/AjxLab/pyboin.

Author

  • Tatsuya Abe
  • '''abe12mccc.jp'''