# Entering natural language input in WolframScript

What is the equivalent of typing = at the beginning of a line to specify natural language input in WolframScript?

This can be done by using Interpreter with SemanticExpression:

Interpreter["SemanticExpression"]["population of Switzerland"]


It can also be done using SemanticInterpretation (thanks @Bob Hanlon):

SemanticInterpretation["population of Switzerland"]

• Or SemanticInterpretation["population of Switzerland"] May 5 '20 at 7:09
• @BobHanlon Thanks. Do you know if it is possible to make an alias so there is no need to type the whole function? May 5 '20 at 15:17
• sem[str_String] := SemanticInterpretation[str]; however, the autocompletion essentially does this. May 5 '20 at 15:21
• @BobHanlon I don't think there is any autocompletion in the WolframScript command line interpreter. I think your comments are worth a full answer. May 5 '20 at 15:48