is an option for SemanticInterpretation , Interpreter , and related functions that specifies how to resolve ambiguities generated during semantic interpretation.
AmbiguityFunction
is an option for SemanticInterpretation , Interpreter , and related functions that specifies how to resolve ambiguities generated during semantic interpretation.
Details
- Common settings are:
-
Automatic always pick the first choiceAll return all choices
- AmbiguityFunction is typically given as a function to be applied to expressions containing AmbiguityList objects.
Examples
open all close allBasic Examples (6)
Get the most probable interpretation:
Get all interpretations:
Print and return all interpretations:
Manually select the first interpretation:
Select only interpretations as countries:
Ambiguities to be resolved may be nested:
Choose the date interpretation in month/day/year form:
Properties & Relations (1)
AmbiguityFunctionAll is equivalent to AmbiguityFunctionIdentity:
History
Text
Wolfram Research (2014), AmbiguityFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/AmbiguityFunction.html.
CMS
Wolfram Language. 2014. "AmbiguityFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AmbiguityFunction.html.
APA
Wolfram Language. (2014). AmbiguityFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AmbiguityFunction.html
BibTeX
@misc{reference.wolfram_2025_ambiguityfunction, author="Wolfram Research", title="{AmbiguityFunction}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/AmbiguityFunction.html}", note=[Accessed: 16-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_ambiguityfunction, organization={Wolfram Research}, title={AmbiguityFunction}, year={2014}, url={https://reference.wolfram.com/language/ref/AmbiguityFunction.html}, note=[Accessed: 16-November-2025]}