ja-normalize

v0.1.2
io.github.KojimaHyui01/ja-normalize Checked 3 days ago Published 2 months ago

Holidays/business days for 200+ countries; Japanese address, name, bank and company normalization.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

holidays Public holidays (200+ countries)

Public/bank/school holidays for a country and year, with optional region (US-CA → region=CA) and type filter.

ParameterTypeDescription
country *stringISO 3166-1 alpha-2, e.g. US, DE, JP
year *integer
regionstring
typesstringcomma list: public,bank,school,optional,observance

business_day Business-day calculator (any country)

Is a date a business day in a country? Add/subtract N business days honouring holidays and the local weekend (e.g. Fri-Sat in Saudi Arabia).

ParameterTypeDescription
country *string
addinteger
calendarstring
datestringYYYY-MM-DD, default today
regionstring
weekendstringoverride, weekday numbers 0=Sun e.g. 5,6

holiday_countries List supported countries / regions (free)

Lists supported country codes, or the regions of one country when `country` is given.

ParameterTypeDescription
countrystring

jp_business_day Japanese business-day calculator (official 内閣府 data)

Japanese holidays incl. 振替休日/国民の休日; add N business days; 月末営業日; calendar=bank also closes Dec 31–Jan 3.

ParameterTypeDescription
addinteger
calendarstring
datestring

jp_bank_resolve Japanese bank / branch name → codes

Fuzzy-resolve a bank (銀行/信金/信組/労金/JA) and optional branch name to 金融機関コード and 支店コード, with half-width kana for 全銀 files.

ParameterTypeDescription
bank *string
branchstring

jp_bank_lookup Japanese bank / branch by code

Exact lookup of a 4-digit bank code (+ optional 3-digit branch code).

ParameterTypeDescription
bankCode *string
branchCodestring

jp_name_parse Japanese personal name → family/given, readings, passport romaji

Splits a kanji full name, returns ranked reading candidates with confidence and 外務省 passport romaji. Pass `kana` ("<family> <given>") when known for a deterministic result.

ParameterTypeDescription
name *string
kanastring

jp_name_romaji Kana → Hepburn romaji (passport rules)

Deterministic romanization: passport form (SATO, ONO, NAMBA), OH-style, macron and strict forms. Input "さとう ゆうこ" or a single token.

ParameterTypeDescription
kana *string

jp_address_normalize Japanese address normalization + coordinates

Normalizes any Japanese address notation to pref/city/town/block against the Address Base Registry and returns WGS84 coordinates.

ParameterTypeDescription
address *string
levelinteger

jp_text_normalize Japanese business text normalization

Full-width → half-width, 和暦 → ISO dates, extracts phone numbers (E.164), postal codes and emails from free text.

ParameterTypeDescription
text *string

jp_company_resolve Japanese company name → 法人番号 (NTA registry)

Fuzzy company-name or 13-digit corporate-number lookup with registered address and invoice-number format.

ParameterTypeDescription
query *string
prefectureCodestring

jp_crypto_ticker JPY crypto prices + Japan premium

BTC/ETH/XRP prices on bitFlyer, Coincheck, GMO Coin and bitbank, cross-exchange median, USD reference, USD/JPY and the Japan premium vs USD.

ParameterTypeDescription
symbolstring