A Python implementation of ke2daira
$ pip install ke2daira
from ke2daira import ke2dairanize
print(ke2dairanize("松平 健")) # "ケツダイラ マン"
Install dependencies with poetry: poetry install
Run type check: poetry run mypy .
Run tests: poetry run pytest
Format code: poetry run black .
Lint and fix code: poetry run ruff check --fix .
ke2daira.py
only supports switching the head of the first word and the one of the last word.
Apache-2.0