Skip to content

fix: restore Chinese ITN measure fields in TokenParser#357

Merged
pengzhendong merged 1 commit into
masterfrom
fix/token-parser-measure
Jun 9, 2026
Merged

fix: restore Chinese ITN measure fields in TokenParser#357
pengzhendong merged 1 commit into
masterfrom
fix/token-parser-measure

Conversation

@pengzhendong

@pengzhendong pengzhendong commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

The previous PR (#356) replaced measure's ITN_ORDERS from ["numerator", "denominator", "value"] to ["value", "units"], breaking Chinese ITN's 每小时X pattern which uses numerator/denominator fields.

Fix: include both Chinese and English field names: ["numerator", "denominator", "value", "units"].

Also adds telephone, electronic, and preserve_order fields for the new English ITN rules.

Test plan

  • All 1443 unit tests pass (including Chinese ITN 每小时 patterns)
  • CI passes

@pengzhendong pengzhendong merged commit c7c9f75 into master Jun 9, 2026
1 check passed
@pengzhendong pengzhendong deleted the fix/token-parser-measure branch June 9, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant