12 ms·
Attempto Controlled English
- Koshkin 7y agoThe idea is similar to one behind the Structured English QUEry Language we all know and love.
- auggierose 7y agoOnly in as much that the idea is similar to most programming languages ...
- joaojeronimo 7y agoNewspeak!
- trhway 7y agoActually legalese comes to mind. Therein and hereto ... I mean the same purported goal to disambiguate and precisely specify. Because of complexity of the result it is hard to say whether that goal is achieved or not :)
- svat 7y agoStarting in about the 11th century, philosophers in India of the Navya-Nyāya school adopted a similar artificial dialect of Sanskrit, to make their arguments precise. Of course there was no computer implementation backing the formalization, but the goal was similar: to have a language that remains a subset of natural language and (somewhat) intelligible to a typical educated person, yet is a formal language with unambiguous meanings. A good description of this language is in a couple of papers by Ganeri [1]. For example (taken from [2]), instead of saying the straightforward “Caitra goes to the village”, if you wished to be really precise you might say “There is an activity which leads to a connection-activity which has as Agent no one other than Caitra, specified by singularity, [which] is taking place in the present and which has as Object something not different from ‘village’.” (Sounds a bit less unnatural and also a bit less confusing in Sanskrit.) > [Attempto Controlled English] can serve as knowledge representation… It is not clear to me when this project started, but there was a 1985 article pointing out the Navya-Nyāya/“Shastric Sanskrit” language as an example of something that is both (somewhat) a natural language and (somewhat) usable for knowledge representation [2]. In its own way that article became, in popular culture in some circles in India, the source of various unfounded memes about Sanskrit being good for computers, or more absurd claims (https://news.ycombinator.com/item?id=14295285 https://news.ycombinator.com/item?id=14295285). [1]: http://www.columbia.edu/itc/mealac/pollock/sks/papers/Ganeri(Matilal%20vol).pdf http://www.columbia.edu/itc/mealac/pollock/sks/papers/Ganeri... (can't find a link to the second paper now) [2]: https://www.aaai.org/ojs/index.php/aimagazine/article/view/466 https://www.aaai.org/ojs/index.php/aimagazine/article/view/4...
- elboru 7y agoIt would be great to use that kind of language in software development, I think it would avoid a lot of bugs and discussions between QAs and developers.
- vinceguidry 7y agoI believe Latin was still being used for theological discourse in Europe well into the 1700s for that same reason, precision. Something nice about a dead language is the meanings of the words don't have a way to change from under you.
- jquinby 7y agoIndeed, Ecclesial Latin is still the official language of the Catholic Church, inasmuch as documents like papal encyclicals are published in Latin first before translation to other languages. https://en.wikipedia.org/wiki/Ecclesiastical_Latin#Current_use https://en.wikipedia.org/wiki/Ecclesiastical_Latin#Current_u...
- schoen 7y agoHowever, I don't think the people using Latin for these purposes really think that logical precision is an important reason to do so. The Vatican Latinist I briefly studied with, Reginald Foster, doesn't seem to think that way -- he regularly made fun of people who acted as if "Latin came down from heaven in a gold box". You might say that the use of Latin has a benefit of precision for the Catholic Church because there are some familiar theological and ecclesiological terms available whose meaning should be clear and which can be matched up with similar vocabulary in older Christian texts. Still, these texts are not using some kind of formal logic, and they don't do a more careful job of avoiding ambiguities than lawyers drafting legislation or contracts in modern languages do.
- mxcrossb 7y agoWikipedia articles like this bug me. It is a well written introduction to the project, but why is that on the Wikipedia? Put that on your own website! I wish more people would follow wikipedia’s very clean and easy style. This is of course why the article can’t follow wikipedia’s citation rules. And also all the references just link to articles by one group, so the article can’t give you any real context. Is this a serious, notable work? Or is someone just boosting their search rankings with a Wikipedia link?
- chadlavi 7y agoIt seems like the latter, though if so, it's surprising to me that it hasn't been removed. Wikipedia's editors are pretty brutal about the notoriety threshold.
- pessimizer 7y agoOnly with things in which editors exist who feel confident enough (sometimes wrongly) to judge their notability. You can completely make up pages describing concepts in obscure fields, as long if you can generate a citation or three - bonus points if the papers cited are unintelligible to all but a few dozen people in the world, and don't even mention the concept.
- edtechdev 7y agoYeah, why would something well-written be on Wikipedia? It's definitely not more notable than a list of butterflies on stamps of Australia https://en.wikipedia.org/wiki/List_of_butterflies_on_stamps_of_Australia https://en.wikipedia.org/wiki/List_of_butterflies_on_stamps_...
- throwaway744678 7y agoThis would have been cooler if they had written the page in the language itself (going meta, here)
- avmich 7y agoMore appropriate would be to have English Wikipedia translated wholesale to ACE. In that one the article about ACE would be naturally in ACE.
- glenneroo 7y agoFinally I understand why all those years of Google searches for documentation about ACE (ADAPTIVE Communication Environment)[1] have been so painful. To make matters worse, versioning was very close - Attempto is at version 6.7 while the programming ACE is at 6.5. [1]: http://download.dre.vanderbilt.edu/ http://download.dre.vanderbilt.edu/
- avmich 7y agoA friend of mine, who worked with Verilog a lot, was expressing some anger about extension .v on the Internet (Github?) mostly related to Coq, not Verilog. Oh well...
- mmastrac 7y agoHas anyone attempto'd to combine this with state machines in a way that you could specify rules in an english-like way, with a computer checking that you've resolved all ambiguities? For example, a system that starts and stops based on observing parts of another system, but also allowing a user to input explicit start/stop commands would require additional rules: The system is stopped if the subsystem is in state A. The system is started if the subsystem is not in state A. The system is stopped if the user sets the stop flag. The system is started if the user unsets the stop flag. Error: ambiguous state if subsystem not in state A and user sets the stop flag. There's some real value here in allowing non-programmers to work through all the edge cases of a system, while simultaneously adding tools to convert standard English to ACE (eg: identifying ambiguous English and asking them to rewrite pronouns or split sentences up).
- schoen 7y agoIt seems like you could perhaps write a translator from ACE to TLA+ or another specification language https://en.wikipedia.org/wiki/TLA%2B https://en.wikipedia.org/wiki/TLA%2B and formally verify properties (but perhaps that's something that the ACE developers already do).
- mmastrac 7y agoThat would be very interesting. I couldn't find any references to TLA+ and ACE together, so it might be a novel area of research.
- johnfactorial 7y agoHave you seen Cucumber? https://cucumber.io/docs https://cucumber.io/docs It's a system that attempts to enable specifications for a software product to be written in a way that can be parsed by an automated testing framework. In theory, you carefully say what you want the software to do in given scenarios, human developers understand the spec as-is, and automated tests can read and execute the spec as-is as a test. I have no professional experience with it because all the docs make it look like something I would run from: lots of in-code scaffolding and talking like a computer just to get the same job done. But maybe you'll like it.
- jgalt212 7y agoEnglish: The Good Parts http://shop.oreilly.com/product/9780596517748.do http://shop.oreilly.com/product/9780596517748.do
- grenoire 7y agoThe meat and potatoes of course is the parser created for this language: https://github.com/Attempto/APE https://github.com/Attempto/APE This is the primary benefit for heavily structuring the sentences. It effectively turns into a programming language with its own form of definitions and statements. My question is: Can we make it Turing-complete by means of recursive sentences? Maybe by using the sentences that redefine proper nouns?
- parentheses 7y ago"A girl had no name" Jaqen H'ghar spoke ACE
- dlojudice 7y agoAs I'm getting older I feel the need to make the code as readable as possible [1] to a point where non-programmers would be able to read it, especially in complex business rules enviroments (ex: finance, insurance, health, etc). The quote "the limits of my language are the limits of my world" [2] shows when we try expressing these business rules in high-level programing languages like C, C#, Javascript. There are (a significant) parts of my code where I wish to not be limited by the syntax of the language. DSLs helps, but usually takes a disproportionate effort to implement. Would be great see more natural languages embedded on our day to day programing language. [1] https://twitter.com/ianmiell/status/1144154072217522176?s=19 https://twitter.com/ianmiell/status/1144154072217522176?s=19 [2] https://www.quora.com/What-did-Ludwig-Wittgenstein-mean-by-the-limits-of-my-language-are-the-limits-of-my-world?share=1 https://www.quora.com/What-did-Ludwig-Wittgenstein-mean-by-t...
- droithomme 7y agoThis seems similar to Applescript. Someone wants to make a precise language that looks like English and can be read and written by non-programmers. Ultimately you get the reading part, sort of, but writing is harder. You end up with very subtle and precise rules in the grammar which are not as easily inferred correctly as with many common programming languages. Just writing sentences that you think should be correct won't work. You need to fully understand the programming language. So you're back at requiring programmers to work with it.
- iainmerrick 7y agoIt might be great to have tool-assisted writing, where you write naturally and the computer says “do you mean: [pedantic unambiguous version]”. The main risk would be people blindly accepting corrections that actually change the meaning -- just like any other autocorrection system. I’m not sure how to mitigate against that.
- deckar01 7y agoThis reminds me of when my team started code reviewing feature documentation. The text was going to have to be read hundreds of times and understanding it would be critical for QA to function properly. A common problem we ran into was sentences that were hard to understand without reading them multiple times due to small connective parts of speech being omitted. It intuitively felt wrong, but it was not immediately obvious why. After researching it a little every case seemed to boil down to resolving ambiguity. English is filled with ambiguous words that can be multiple parts of speech. These seemingly unnecessary pieces of syntax are actually really efficient at hinting what part of speech will come next so that the context is immediately understood.
- carapace 7y agoFWIW, I thought it might be something like E-Prime but instead it's a little bit like Loglan, eh? https://en.wikipedia.org/wiki/E-Prime https://en.wikipedia.org/wiki/E-Prime https://en.wikipedia.org/wiki/Loglan https://en.wikipedia.org/wiki/Loglan
- airstrike 7y agoTo be honest, I'm a bit disappointed this article isn't written in ACE Or maybe "To be honest, I do not like that the Wikipedia editors chose not to write this article in ACE"
- TremendousJudge 7y agoIsn't it? The "Overview" section doesn't read like standard English at all. I thought it may be ACE
- pierrec 7y agoIt's not. Take this sentence: "ACE construction rules require that each noun be introduced by a determiner (a, every, no, some, at least 5, ...)." The sentence does not follow the rule it describes, since "rules" does not have a determiner. It might be worth a try, but I suspect ACE would make the article awkward and harder to read.
- tunesmith 7y agoIf fact databases were written in this language, wouldn't it make NLP much easier? To allow machines to more easily query fact databases and infer new facts?
- capableweb 7y agoIt's basically what Datomic (and other Datalog inspired tools) do, checkout https://docs.datomic.com/on-prem/architecture.html https://docs.datomic.com/on-prem/architecture.html
- avmich 7y agoFrom what I see Datomic isn't written with anything resembling natural language - not anywhere nearly ACE. Can you give good examples to the contrary?
- capableweb 7y agoI was replying especially to the "easily query fact databases " and less about the general post about ACE. I could imagine though that you could take ACE syntax and transform it into Datalog/Datomic queries quite easily.
- rthomas6 7y agoCan you define new nouns and verbs? AKA objects and functions? Imagine being able to have the specification, documentation, and actual code implementation all be the same thing!
- dragonwriter 7y ago> Can you define new nouns and verbs? There is defined syntax for variables, but they are expressly nouns exclusively.
- lopmotr 7y agoThis sounds kind of like the simplified English used on aeroplanes [1] except more formal and less for humans to write. That leads to signs like "no step" instead of "don't stand on this". [1] https://en.wikipedia.org/wiki/Simplified_Technical_English https://en.wikipedia.org/wiki/Simplified_Technical_English
- Animats 7y agoBell Labs did something like this, called "FASE", in 1969.[1] Didn't go anywhere; way too early. [1] http://digitalcollections.library.cmu.edu/awweb/awarchive?type=file&item=361607 http://digitalcollections.library.cmu.edu/awweb/awarchive?ty...