Responsive and Flexible Controlled Natural Language Authoring with Zipper-Based Transformations

S. Ferré
{"title":"Responsive and Flexible Controlled Natural Language Authoring with Zipper-Based Transformations","authors":"S. Ferré","doi":"10.3233/978-1-61499-904-1-21","DOIUrl":null,"url":null,"abstract":"Controlled natural languages (CNL) have the benefits to combine the readability of natural languages, and the accuracy of formal languages. They have been used to help users express facts, rules or queries. While generally easy to read, CNLs remain difficult to write because of the constrained syntax. A common solution is a grammar-based auto-completion mechanism to suggest the next possible words in a sentence. However, this solution has two limitations: (a) partial sentences may have no semantics, which prevents giving intermediate results or feedback, and (b) the suggestion is often limited to adding words at the end of the sentence. We propose a more responsive and flexible CNL authoring by designing it as a sequence of sentence transformations. Responsiveness is obtained by having a complete, and hence interpretable, sentence at each time. Flexibility is obtained by allowing insertion and deletion on any part of the sentence. Technically, this is realized by working directly on the abstract syntax, rather than on the concrete syntax , and by using Huet's zippers to manage the focus on a query part, the equivalent of the text cursor of a word processor.","PeriodicalId":113042,"journal":{"name":"Controlled Natural Language","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-08-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Controlled Natural Language","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3233/978-1-61499-904-1-21","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Controlled natural languages (CNL) have the benefits to combine the readability of natural languages, and the accuracy of formal languages. They have been used to help users express facts, rules or queries. While generally easy to read, CNLs remain difficult to write because of the constrained syntax. A common solution is a grammar-based auto-completion mechanism to suggest the next possible words in a sentence. However, this solution has two limitations: (a) partial sentences may have no semantics, which prevents giving intermediate results or feedback, and (b) the suggestion is often limited to adding words at the end of the sentence. We propose a more responsive and flexible CNL authoring by designing it as a sequence of sentence transformations. Responsiveness is obtained by having a complete, and hence interpretable, sentence at each time. Flexibility is obtained by allowing insertion and deletion on any part of the sentence. Technically, this is realized by working directly on the abstract syntax, rather than on the concrete syntax , and by using Huet's zippers to manage the focus on a query part, the equivalent of the text cursor of a word processor.
响应和灵活的控制自然语言创作与基于拉链的转换
受控自然语言(CNL)具有自然语言的可读性和形式语言的准确性相结合的优点。它们被用来帮助用户表达事实、规则或查询。虽然cnl通常很容易阅读,但由于语法的限制,cnl仍然很难编写。一种常见的解决方案是基于语法的自动补全机制,以建议句子中下一个可能的单词。然而,这种解决方案有两个限制:(a)部分句子可能没有语义,这阻碍了给出中间结果或反馈;(b)建议通常仅限于在句尾添加单词。通过将CNL设计为一系列句子转换,我们提出了一种响应更快、更灵活的CNL创作方法。反应性是通过每次都有一个完整的、因而可解释的句子来获得的。通过允许在句子的任何部分插入和删除,获得了灵活性。从技术上讲,这是通过直接处理抽象语法而不是具体语法来实现的,并且使用Huet的zippers来管理查询部分(相当于文字处理器的文本光标)上的焦点。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信