Format a Japanese bank-transfer account name (振込名義カナ)
zengin_name_formatConvert a payee or payer name to Japanese bank transfer (Zengin) format: half-width katakana conversion, legal-entity abbreviation, and length validation.
Instructions
Turn a payee or payer name into the form Japanese banks accept in transfers (Zengin): half-width katakana, digits, A-Z and a few symbols; small kana made large (ッ->ツ, ャ->ヤ), ー->-, ・->., legal-entity words replaced by the bank abbreviation with the position rule (株式会社 at the start 'カ)', in the middle '(カ)', at the end '(カ'). Accepts kana (hiragana or katakana, full or half width), Latin letters and digits, and legal-entity words in kanji or spelled out (カブシキガイシャ). It does NOT read other kanji: pass the reading. Returns ok, zengin (half-width), display (full-width), length (voiced kana count 2), entities, changes, errors, warnings (code, message in English and Japanese). 振込名義を全銀の形に整える。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name as kana reading, e.g. '株式会社 ニッポンショウジ' | |
| max_length | No | Warn above this many half-width chars (default 30, 0 = off) |