1

I know I can write:

SpokenString[a + b^2]

And then obtain as output:

"a plus b squared"

What about the opposite, something like:

ReadString["a plus b squared"]

And then obtain as output (without access to the internet, e.g., calling Wolfram Alpha):

a + b^2
Carl Woll
  • 130,679
  • 6
  • 243
  • 355
Luxspes
  • 920
  • 6
  • 21

1 Answers1

3

Assuming:

without calling Wolfram Alpha

means you just want an in-product approach as opposed to a web based approach, you could use Ctrl+= or the WolframAlpha function. For example:

WolframAlpha["a plus b squared", "MathematicaParse"]

HoldComplete[a + b^2]

If you really mean that you don't want to use anything based on Wolfram|Alpha, then I think you will need to create your own parser.

Carl Woll
  • 130,679
  • 6
  • 243
  • 355