Type Alias: NumeralStrategy

NumeralStrategy = "hangul-phonetic" | "positional-arabic" | "additive-arabic" | "smart"

Controls how runs of hanja numerals are converted. Corresponds to Rust NumeralStrategy.

Strategy二〇一六年十一月一千二百三十四
"hangul-phonetic"이공일륙년십일월일천이백삼십사
"positional-arabic"2016년(n/a)(n/a)
"additive-arabic"(n/a)11월1234
"smart"2016년11월1234
  • "hangul-phonetic" — Read every digit character-by-character in Korean phonetics. This is Seonbi's behaviour and the preset default. Corresponds to Rust NumeralStrategy::HangulPhonetic.
  • "positional-arabic" — Treat a run of digit-only hanja (〇一二三四五六七八九 and variants) as positional (place-value) notation and convert to Arabic. Corresponds to Rust NumeralStrategy::PositionalArabic.
  • "additive-arabic" — Parse sequences containing place markers (十百千萬億兆京) using stack-based accumulation and produce Arabic, respecting the Korean convention that bare means 10 not 一十. Corresponds to Rust NumeralStrategy::AdditiveArabic.
  • "smart" — Uses "additive-arabic" when a unit hanja follows the numeral (年月日時分秒號世紀 and others); uses "positional-arabic" for pure-digit runs of four or more characters (year convention); otherwise falls back to "hangul-phonetic". Corresponds to Rust NumeralStrategy::Smart.