Skip to content

fix(azad-text): stop number conversion from mangling ordinary speech#3

Open
Montana wants to merge 1 commit into
spence:mainfrom
Montana:fix/number-word-conversion
Open

fix(azad-text): stop number conversion from mangling ordinary speech#3
Montana wants to merge 1 commit into
spence:mainfrom
Montana:fix/number-word-conversion

Conversation

@Montana

@Montana Montana commented Jul 4, 2026

Copy link
Copy Markdown

Hey @spence,

  • Digit sequences are cardinal-only, so ordinals are no longer consumed: 'give me one second' no longer becomes 'give me 1 2'. Ordinals still combine into cardinals ('twenty fourth' -> 24).
  • Plural scale words stay verbatim: 'hundreds of people' no longer becomes '100 of people' (generalizes the existing 'seconds' carve-out).
  • Number candidates ending in 'and' are rejected so the connective survives: 'between five and six' no longer becomes 'between 5 six'. Interior 'and' still parses ('two hundred and sixty six' -> 266).

Adds regression tests for all three cases; each fails on main.

Cheers,
Michael

- Digit sequences are cardinal-only, so ordinals are no longer consumed:
  'give me one second' no longer becomes 'give me 1 2'. Ordinals still
  combine into cardinals ('twenty fourth' -> 24).
- Plural scale words stay verbatim: 'hundreds of people' no longer
  becomes '100 of people' (generalizes the existing 'seconds' carve-out).
- Number candidates ending in 'and' are rejected so the connective
  survives: 'between five and six' no longer becomes 'between 5 six'.
  Interior 'and' still parses ('two hundred and sixty six' -> 266).

Adds regression tests for all three cases; each fails on main.
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