SemanticInterpretation
✖
SemanticInterpretation
attempts to give the best semantic interpretation of the specified free-form string as a Wolfram Language expression.
filters possible semantic interpretations, returning the best one that matches the specified pattern.
returns the semantic interpretation wrapped with the specified head.
Details and Options

- "string" can be natural-language English text.
- Types of objects returned include numbers, formulas, Entity objects, DateObject, etc.
- The following options can be given:
-
AmbiguityFunction Automatic function to apply to the collection of possible interpretations GeoLocation $GeoLocation geo location to assume TimeZone $TimeZone time zone to assume for semantic interpretation Method Automatic which parser to use - If multiple interpretations are found, SemanticInterpretation supplies the list of them (with the best first) to the function specified as the setting for AmbiguityFunction. The result of applying that function is returned as the result from SemanticInterpretation.
- By default, SemanticInterpretation uses the Wolfram|Alpha server. With the Method"LocalParse" option, the Wolfram|Alpha server will not be called unless no interpretation can be found.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Get the best semantic interpretation of a string:

https://wolfram.com/xid/0tp0oqn3d4nbma-qox9yj


https://wolfram.com/xid/0tp0oqn3d4nbma-ei3cuf

Some semantic interpretations do not require Wolfram|Alpha:

https://wolfram.com/xid/0tp0oqn3d4nbma-3k2vs1

Scope (4)Survey of the scope of standard use cases
Return the most probable interpretation that matches a pattern:

https://wolfram.com/xid/0tp0oqn3d4nbma-fiyi4f


https://wolfram.com/xid/0tp0oqn3d4nbma-dj5ano


https://wolfram.com/xid/0tp0oqn3d4nbma-0ury9


https://wolfram.com/xid/0tp0oqn3d4nbma-0u2rxb

Apply an arbitrary function to the result:

https://wolfram.com/xid/0tp0oqn3d4nbma-mekinh

Options (3)Common values & functionality for each option
AmbiguityFunction (3)
Get the most probable interpretation:

https://wolfram.com/xid/0tp0oqn3d4nbma-8nnk8h


https://wolfram.com/xid/0tp0oqn3d4nbma-layh4p


https://wolfram.com/xid/0tp0oqn3d4nbma-gs0ezh


https://wolfram.com/xid/0tp0oqn3d4nbma-zonaqs

Apply an arbitrary function in the case of ambiguity:

https://wolfram.com/xid/0tp0oqn3d4nbma-o9axk5

The AmbiguityFunction is not used if there is no ambiguity:

https://wolfram.com/xid/0tp0oqn3d4nbma-zkmgny

Properties & Relations (1)Properties of the function, and connections to other functions
SemanticInterpretation["s"] and WolframAlpha["s","WolframResult"] are effectively equivalent:

https://wolfram.com/xid/0tp0oqn3d4nbma-61zxps

So are SemanticInterpretation["s",_,HoldComplete] and WolframAlpha["s","WolframRParse]:

https://wolfram.com/xid/0tp0oqn3d4nbma-o4gl05

Possible Issues (1)Common pitfalls and unexpected behavior
Wolfram Research (2014), SemanticInterpretation, Wolfram Language function, https://reference.wolfram.com/language/ref/SemanticInterpretation.html (updated 2025).
Text
Wolfram Research (2014), SemanticInterpretation, Wolfram Language function, https://reference.wolfram.com/language/ref/SemanticInterpretation.html (updated 2025).
Wolfram Research (2014), SemanticInterpretation, Wolfram Language function, https://reference.wolfram.com/language/ref/SemanticInterpretation.html (updated 2025).
CMS
Wolfram Language. 2014. "SemanticInterpretation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/SemanticInterpretation.html.
Wolfram Language. 2014. "SemanticInterpretation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/SemanticInterpretation.html.
APA
Wolfram Language. (2014). SemanticInterpretation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SemanticInterpretation.html
Wolfram Language. (2014). SemanticInterpretation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SemanticInterpretation.html
BibTeX
@misc{reference.wolfram_2025_semanticinterpretation, author="Wolfram Research", title="{SemanticInterpretation}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/SemanticInterpretation.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_semanticinterpretation, organization={Wolfram Research}, title={SemanticInterpretation}, year={2025}, url={https://reference.wolfram.com/language/ref/SemanticInterpretation.html}, note=[Accessed: 29-March-2025
]}