Module:ja/documentation

Documentation for Module:ja. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

The module does various things related to Japanese.

Testcases edit

Module:ja/testcases

Functions edit

  1. hira_to_kata:
    {{#invoke:ja|hira_to_kata|おはようございます}} → オハヨウゴザイマス
  2. kata_to_hira:
    {{#invoke:ja|kata_to_hira|アメリカンアパレル}} → あめりかんあぱれる
  3. romaji_to_kata:
    {{#invoke:ja|romaji_to_kata|bakkurasshu}} → バックラッシュ
  4. script:
    {{#invoke:ja|script|どうも有難う御座います}} → Hira+Hani
    {{#invoke:ja|script|どうぞよろしく}} → Hira
    {{#invoke:ja|script|アメリカ合衆国}} → Kana+Hani

Uses edit

It is used by

  1. {{ja-verbconj}} and its subtemplates
  2. {{ja-noun}}, {{ja-verb}}, {{ja-adj}}, {{ja-pos}}, and {{ja-verb-suru}} which detect the script, generate romanizations, generate sort keys
  3. Module:category tree/poscatboiler/data/lang-specific/ja-ryu to generate romanizations, sort keys, count morae, perform checks for various Japanese categories
  4. {{ja-readings}} (Module:ja-kanji-readings) to generate romanizations and to convert from hiragana to katakana for on readings in Module:ja/data/jouyou-yomi

It was formerly used by {{ja-new}} (which uses it substitutively); the relevant code is now at Module:ja-new.