Skip to main content

arpakana

ARPAbet音素記号を日本語のカナ文字へ変換するためのPythonライブラリです。

📖 概要

arpakana は、Carnegie Mellon University Pronouncing Dictionary形式のARPAbetを入力として、対応するカタカナ列を出力します。

💡 使用例

uv add arpakana
from arpakana import arpabet_to_kana

greeting = arpabet_to_kana("HH AH0 L OW1")
assert greeting == "ハロウ"

words = ["B", "L", "UW"]
assert arpabet_to_kana(words) == "ブルー"

fallback = arpabet_to_kana("XYZ", unknown="*")
assert fallback == "*"

# 語境界の音素を連結した場合は、境界同化で生じた摩擦音の
# 不要な促音化を抑制できます。
connected = arpabet_to_kana(
    "D IH1 JH UW1",
    geminate_intervocalic=False,
)
assert connected == "ディジュー"

📄 ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細は LICENSE を参照してください。

Release files for arpakana 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arpakana 0.0.4
File Size Uploaded
arpakana-0.0.4.tar.gz 261.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arpakana 0.0.4
File Interpreter ABI Platform
arpakana-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 270.2 kB

Release files / arpakana-0.0.4.tar.gz

Download URL arpakana-0.0.4.tar.gz
Size 261.8 kB
Tags Source
SHA-256 checksum
How to use checksums
86d396231b9c75c5651ccbd61145920411080e5971f2d41241a38712c7a75793
BLAKE2b-256 checksum
How to use checksums
1e599a17b4753ccf66f574f5699b9c6926cbd1a3030cc91a0c4359d57506b553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / arpakana-0.0.4-py3-none-any.whl

Download URL arpakana-0.0.4-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f470cdde26d542dd259d6f40a65655a4eab2b30f6ae2ffde7a53fc011a8cc97
BLAKE2b-256 checksum
How to use checksums
a9b32fb7786820e7d3864a98ea8491d8072774ed13847e71c2c99f621e0e9a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page