OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret US states:

Interpreter["USState"]["Alaska"]

Interpreter["USState"]["TX"]

Restrict to US states in a class:

Interpreter[Restricted["USState",(EntityClass["US Midwest states", EntityClass["AdministrativeDivision","USStatesMidwest"], "EntityClass[\"AdministrativeDivision\", \"USStatesMidwest\"]", "administrative divisions"])]]["the peach state"]

Interpreter[Restricted["USState",(EntityClass["US Midwest states", EntityClass["AdministrativeDivision","USStatesMidwest"], "EntityClass[\"AdministrativeDivision\", \"USStatesMidwest\"]", "administrative divisions"])]]["IL"]

Apply a property restriction:

Interpreter[Restricted["USState",(EntityProperty["population density", EntityProperty["AdministrativeDivision","PopulationDensity"], "EntityProperty[\"AdministrativeDivision\", \"PopulationDensity\"]"])->GreaterThan[(Entity["Massachusetts, United States", Entity["AdministrativeDivision",{"Massachusetts","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Massachusetts\", \"UnitedStates\"}]", "administrative division"])[(EntityProperty["population density", EntityProperty["AdministrativeDivision","PopulationDensity"], "EntityProperty[\"AdministrativeDivision\", \"PopulationDensity\"]"])]]]]["Ohio"]

Interpreter[Restricted["USState",(EntityProperty["population density", EntityProperty["AdministrativeDivision","PopulationDensity"], "EntityProperty[\"AdministrativeDivision\", \"PopulationDensity\"]"])->GreaterThan[(Entity["Massachusetts, United States", Entity["AdministrativeDivision",{"Massachusetts","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Massachusetts\", \"UnitedStates\"}]", "administrative division"])[(EntityProperty["population density", EntityProperty["AdministrativeDivision","PopulationDensity"], "EntityProperty[\"AdministrativeDivision\", \"PopulationDensity\"]"])]]]]["NJ"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[Entity, paclet:ref/Entity])  ▪  (RefLink[EntityValue, paclet:ref/EntityValue])}, {Related Entity Types:  (RefLink[AdministrativeDivision, paclet:ref/entity/AdministrativeDivision])  ▪  (RefLink[Country, paclet:ref/entity/Country])  ▪  (RefLink[City, paclet:ref/entity/City])  ▪  (RefLink[ZIPCode, paclet:ref/entity/ZIPCode])  ▪  (RefLink[MetropolitanArea, paclet:ref/entity/MetropolitanArea])  ▪  (RefLink[Neighborhood, paclet:ref/entity/Neighborhood])}, {Related Interpreter Types:  (RefLink[USStateClass, paclet:ref/interpreter/USStateClass])  ▪  (RefLink[ComputedUSState, paclet:ref/interpreter/ComputedUSState])  ▪  (RefLink[Location, paclet:ref/interpreter/Location])  ▪  (RefLink[USCounty, paclet:ref/interpreter/USCounty])  ▪  (RefLink[USCountyClass, paclet:ref/interpreter/USCountyClass])  ▪  (RefLink[AdministrativeDivision, paclet:ref/interpreter/AdministrativeDivision])  ▪  (RefLink[AdministrativeDivisionClass, paclet:ref/interpreter/AdministrativeDivisionClass])  ▪  (RefLink[Country, paclet:ref/interpreter/Country])  ▪  (RefLink[CountryClass, paclet:ref/interpreter/CountryClass])  ▪  (RefLink[City, paclet:ref/interpreter/City])  ▪  (RefLink[ZIPCode, paclet:ref/interpreter/ZIPCode])  ▪  (RefLink[MetropolitanArea, paclet:ref/interpreter/MetropolitanArea])  ▪  (RefLink[Neighborhood, paclet:ref/interpreter/Neighborhood])  ▪  (RefLink[Entity, paclet:ref/interpreter/Entity])  ▪  (RefLink[ComputedLocation, paclet:ref/interpreter/ComputedLocation])  ▪  (RefLink[ComputedUSCounty, paclet:ref/interpreter/ComputedUSCounty])  ▪  (RefLink[ComputedAdministrativeDivision, paclet:ref/interpreter/ComputedAdministrativeDivision])  ▪  (RefLink[ComputedCountry, paclet:ref/interpreter/ComputedCountry])  ▪  (RefLink[ComputedCity, paclet:ref/interpreter/ComputedCity])  ▪  (RefLink[ComputedZIPCode, paclet:ref/interpreter/ComputedZIPCode])  ▪  (RefLink[ComputedMetropolitanArea, paclet:ref/interpreter/ComputedMetropolitanArea])  ▪  (RefLink[ComputedNeighborhood, paclet:ref/interpreter/ComputedNeighborhood])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})