Skip to content

otariidae/ke2daira.py

Repository files navigation

ke2daira.py

A Python implementation of ke2daira

Installation

$ pip install ke2daira

Usage

from ke2daira import ke2dairanize

print(ke2dairanize("松平 健")) # "ケツダイラ マン"

Development

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 .

Difference from original ke2daira

ke2daira.py only supports switching the head of the first word and the one of the last word.

License

Apache-2.0