pyboin is Pure-Python Japanese character interconverter for Hiragana and Vowel.
「こんにちは」 -> 「おんいいあ」
- Python3
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')
# => 'サ'
$ pip install pyboin
Bug reports and pull requests are welcome on GitHub at https://github.com/AjxLab/pyboin.
- Tatsuya Abe
- '''abe12mccc.jp'''