Decide where the English rules should follow natural speech #10

Open
opened 2026-11-27 00:33:53 +02:00 by paultal · 1 comment
Owner

The English rules in render.py keep the grammar unambiguous, but some of the results go against how people actually say things.

input output (correct under the current rules) what most people mean
the square root of x squared plus y squared sqrt(x^2) + y^2 sqrt(x^2 + y^2)
x plus y all squared x + y a^2 (broken: "all" isn't supported) (x + y)^2
minus b over 2 a -frac(b, 2) a frac(-b, 2 a)
sin of 2 theta sin(2) theta sin(2 theta)
e to the i pi e^i pi e^(i pi)
e to the x squared e^x^2 ambiguous

To decide:

  • Which of these should follow natural speech, accepting some ambiguity, and which stay strict?
  • Should "all squared" / "all over" be supported as closing words?
  • For the ambiguous cases, should the model pick the most likely reading (data weighting), or should we say ambiguity is out of scope?

Whatever we choose should be written up in the render.py module docstring and covered in hand_test.jsonl.

The English rules in `render.py` keep the grammar unambiguous, but some of the results go against how people actually say things. | input | output (correct under the current rules) | what most people mean | |---|---|---| | the square root of x squared plus y squared | `sqrt(x^2) + y^2` | `sqrt(x^2 + y^2)` | | x plus y all squared | `x + y a^2` (broken: "all" isn't supported) | `(x + y)^2` | | minus b over 2 a | `-frac(b, 2) a` | `frac(-b, 2 a)` | | sin of 2 theta | `sin(2) theta` | `sin(2 theta)` | | e to the i pi | `e^i pi` | `e^(i pi)` | | e to the x squared | `e^x^2` | ambiguous | **To decide:** - Which of these should follow natural speech, accepting some ambiguity, and which stay strict? - Should "all squared" / "all over" be supported as closing words? - For the ambiguous cases, should the model pick the most likely reading (data weighting), or should we say ambiguity is out of scope? Whatever we choose should be written up in the `render.py` module docstring and covered in `hand_test.jsonl`.
paultal added the designP3 low labels 2026-11-27 00:33:53 +02:00
Author
Owner
  • As the end goal for isotope, we want the language to be as vague as possible and the model to still understand what we want.
  • "all squared" "all over" and other similar words should be supported
  • let's keep ambiguity out of scope for now
- As the end goal for isotope, we want the language to be as vague as possible and the model to still understand what we want. - "all squared" "all over" and other similar words should be supported - let's keep ambiguity out of scope for now
Sign in to join this conversation.