Run the code to get the flags of Europe. Try other regions, like “south america” or “northern europe”:
Get an Entity that represents the countries of Europe. Type += to get a natural language input box and type “europe”. Run the code with +:
\!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "europe", Typeset`boxes$$ =
TemplateBox[{"\"Europe\"",
RowBox[{"EntityClass", "[",
RowBox[{"\"Country\"", ",", "\"Europe\""}], "]"}],
"\"EntityClass[\\\"Country\\\", \\\"Europe\\\"]\"",
"\"countries\""}, "EntityClass"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "europe",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "2",
"Values" -> {{
"name" -> "CountryClass", "desc" -> "a class of countries",
"input" -> "*C.europe-_*CountryClass-"}, {
"name" -> "Word", "desc" -> "a word",
"input" -> "*C.europe-_*Word-"}}}, {
"type" -> "SubCategory", "word" -> "europe",
"template" -> "Assuming ${desc1}. Use ${desc2} instead",
"count" -> "4",
"Values" -> {{
"name" -> "Europe", "desc" -> "Europe",
"input" -> "*DPClash.CountryEC.europe-_*Europe-"}, {
"name" -> "EuropeSovereign",
"desc" -> "sovereign states in Europe",
"input" -> "*DPClash.CountryEC.europe-_*EuropeSovereign-"}, {
"name" -> "EuropeExtended",
"desc" -> "Europe with Russia and Turkey",
"input" -> "*DPClash.CountryEC.europe-_*EuropeExtended-"}, {
"name" -> "EuropeRussia", "desc" -> "Europe with Russia",
"input" -> "*DPClash.CountryEC.europe-_*EuropeRussia-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.276033`5.892505998971276, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{58., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)
Get the names of the countries of Europe:
\!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "europe", Typeset`boxes$$ =
TemplateBox[{"\"Europe\"",
RowBox[{"EntityClass", "[",
RowBox[{"\"Country\"", ",", "\"Europe\""}], "]"}],
"\"EntityClass[\\\"Country\\\", \\\"Europe\\\"]\"",
"\"countries\""}, "EntityClass"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "europe",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "2",
"Values" -> {{
"name" -> "CountryClass", "desc" -> "a class of countries",
"input" -> "*C.europe-_*CountryClass-"}, {
"name" -> "Word", "desc" -> "a word",
"input" -> "*C.europe-_*Word-"}}}, {
"type" -> "SubCategory", "word" -> "europe",
"template" -> "Assuming ${desc1}. Use ${desc2} instead",
"count" -> "4",
"Values" -> {{
"name" -> "Europe", "desc" -> "Europe",
"input" -> "*DPClash.CountryEC.europe-_*Europe-"}, {
"name" -> "EuropeSovereign",
"desc" -> "sovereign states in Europe",
"input" -> "*DPClash.CountryEC.europe-_*EuropeSovereign-"}, \
{"name" -> "EuropeExtended",
"desc" -> "Europe with Russia and Turkey",
"input" -> "*DPClash.CountryEC.europe-_*EuropeExtended-"}, {
"name" -> "EuropeRussia", "desc" -> "Europe with Russia",
"input" -> "*DPClash.CountryEC.europe-_*EuropeRussia-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.330045`5.97011815131117, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{58., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)["Name"]
Get images of the flags of the countries and give them the name flags:
flags = \!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "europe", Typeset`boxes$$ =
TemplateBox[{"\"Europe\"",
RowBox[{"EntityClass", "[",
RowBox[{"\"Country\"", ",", "\"Europe\""}], "]"}],
"\"EntityClass[\\\"Country\\\", \\\"Europe\\\"]\"",
"\"countries\""}, "EntityClass"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "europe",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "2",
"Values" -> {{
"name" -> "CountryClass", "desc" -> "a class of countries",
"input" -> "*C.europe-_*CountryClass-"}, {
"name" -> "Word", "desc" -> "a word",
"input" -> "*C.europe-_*Word-"}}}, {
"type" -> "SubCategory", "word" -> "europe",
"template" -> "Assuming ${desc1}. Use ${desc2} instead",
"count" -> "4",
"Values" -> {{
"name" -> "Europe", "desc" -> "Europe",
"input" -> "*DPClash.CountryEC.europe-_*Europe-"}, {
"name" -> "EuropeSovereign",
"desc" -> "sovereign states in Europe",
"input" -> "*DPClash.CountryEC.europe-_*EuropeSovereign-"},\
{"name" -> "EuropeExtended",
"desc" -> "Europe with Russia and Turkey",
"input" -> "*DPClash.CountryEC.europe-_*EuropeExtended-"}, \
{"name" -> "EuropeRussia", "desc" -> "Europe with Russia",
"input" -> "*DPClash.CountryEC.europe-_*EuropeRussia-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.330045`5.97011815131117, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{58., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)["FlagImage"]
flags = \!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "europe", Typeset`boxes$$ =
TemplateBox[{"\"Europe\"",
RowBox[{"EntityClass", "[",
RowBox[{"\"Country\"", ",", "\"Europe\""}], "]"}],
"\"EntityClass[\\\"Country\\\", \\\"Europe\\\"]\"",
"\"countries\""}, "EntityClass"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "europe",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "2",
"Values" -> {{
"name" -> "CountryClass", "desc" -> "a class of countries",
"input" -> "*C.europe-_*CountryClass-"}, {
"name" -> "Word", "desc" -> "a word",
"input" -> "*C.europe-_*Word-"}}}, {
"type" -> "SubCategory", "word" -> "europe",
"template" -> "Assuming ${desc1}. Use ${desc2} instead",
"count" -> "4",
"Values" -> {{
"name" -> "Europe", "desc" -> "Europe",
"input" -> "*DPClash.CountryEC.europe-_*Europe-"}, {
"name" -> "EuropeSovereign",
"desc" -> "sovereign states in Europe",
"input" -> "*DPClash.CountryEC.europe-_*EuropeSovereign-"},\
{"name" -> "EuropeExtended",
"desc" -> "Europe with Russia and Turkey",
"input" -> "*DPClash.CountryEC.europe-_*EuropeExtended-"}, \
{"name" -> "EuropeRussia", "desc" -> "Europe with Russia",
"input" -> "*DPClash.CountryEC.europe-_*EuropeRussia-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.330045`5.97011815131117, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{61., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)["FlagImage"]