Skip to content

Fix scanning for "and" in mixed fractions#352

Merged
jared-hughes merged 1 commit intomainfrom
jared/scan-fraction-and
Apr 22, 2026
Merged

Fix scanning for "and" in mixed fractions#352
jared-hughes merged 1 commit intomainfrom
jared/scan-fraction-and

Conversation

@jared-hughes
Copy link
Copy Markdown

For 2\frac{3}{4}, we say "2 and 3 fourths". Similarly 1+2\frac{3}{4} should say "1 plus 2 and 3 fourths". Before PR, it forgot the "and" in the latter case because it was thinking of the "+" as a non-digit, as if you wrote 1.2\frac{3}{4}.

The PR changes the mathspeak so "and" is spoken before a fraction of digits if it's preceded by digits/spaces that do not have a dot (.) in there at all.

@jared-hughes jared-hughes requested a review from RonAvitzur April 22, 2026 02:27
@jared-hughes jared-hughes merged commit df584f5 into main Apr 22, 2026
3 checks passed
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.

2 participants