example:
# import "http://commonsense.org/stdlib.en"
# import "http://opentable.com/restaurants.en"
...
example:
The sum of a and b is ```a + b```.
The address of a restaurant is ```{street name} {city name} {zip code}````.
The times available for reservations for two are ```fetch("/api").then(x => x.slots)```.
One of the most interesting aspects of CNLs is that the language that one uses to produce the KR is the same one used to queyr it: controlled natural languages. The other interesting aspect is that machine translation has evolved so much lately that it is plausible to explore if one could make an automated translation from "natural language" to "controlled natural language" with enough training.
One idea is to go through all of wikidata and generate CNL out of it programatically. Then, serve it with the original text in english into a neural network. With tha training, would it be possible to take user input (in natural language) and make the translation automatically to query languages (in controlled natural languages)?
The other massive amount of structure that that has accompanying unstructured data is schema.org data on the web.
Cascal
Cascal is a restaurant.
Address
Opening-Hours
Menu
Entrees
Appetizers