{ "paper_id": "U09-1011", "header": { "generated_with": "S2ORC 1.0.0", "date_generated": "2023-01-19T03:08:15.077646Z" }, "title": "An Update on PENG Light", "authors": [ { "first": "Colin", "middle": [], "last": "White", "suffix": "", "affiliation": { "laboratory": "", "institution": "Macquarie University Sydney NSW 2109", "location": { "country": "Australia" } }, "email": "colcwhite@gmail.com" }, { "first": "Rolf", "middle": [], "last": "Schwitter", "suffix": "", "affiliation": { "laboratory": "Centre for Language Technology Macquarie University Sydney NSW 2109", "institution": "", "location": { "country": "Australia" } }, "email": "rolf.schwitter@mq.edu.au" } ], "year": "", "venue": null, "identifiers": {}, "abstract": "This paper presents an update on PENG Light, a lightweight and portable controlled natural language processor that can be used to translate a well-defined subset of English unambiguously into a formal target language. We illustrate by example of a Firefox extension that provides a simple interface to the controlled natural language processor how web pages can be annotated with textual information written in controlled natural language and how these annotations can be translated incrementally into first-order logic. We focus in particular on technical aspects of the controlled language processor and show in detail how look-ahead information that can be used to guide the writing process of the author is generated during the parsing process. Additionally, we discuss what kind of user interaction is required for processing unknown content words.", "pdf_parse": { "paper_id": "U09-1011", "_pdf_hash": "", "abstract": [ { "text": "This paper presents an update on PENG Light, a lightweight and portable controlled natural language processor that can be used to translate a well-defined subset of English unambiguously into a formal target language. We illustrate by example of a Firefox extension that provides a simple interface to the controlled natural language processor how web pages can be annotated with textual information written in controlled natural language and how these annotations can be translated incrementally into first-order logic. We focus in particular on technical aspects of the controlled language processor and show in detail how look-ahead information that can be used to guide the writing process of the author is generated during the parsing process. Additionally, we discuss what kind of user interaction is required for processing unknown content words.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Abstract", "sec_num": null } ], "body_text": [ { "text": "Computer-processable controlled natural languages are well-defined and tractable subsets of natural languages that have been carefully designed to avoid constructions that may cause ambiguities (Fuchs et al., 1998; Schwitter, 2002; Sowa, 2004; Barker et al., 2007) . Instead of encoding a piece of knowledge in a formal language that is difficult to understand for humans, a controlled natural language can be used to express the same information in a direct way using the vocabulary of the application domain. There is no need to formally encode this information since a computer-processable controlled natural language can be translated automatically and unambiguously into a formal target language by a machine. This has the advantage that everybody who knows English can understand a text written in controlled natural language and that a machine can process this text since it corresponds to a formal notation. In order to support the writing of these texts, text-and menu-based predictive editing techniques have been suggested that guide the writing process of the author (Tennant et al., 1983; Schwitter et al., 2003; Kuhn, 2008) . These techniques give the author a way to match what he or she wants to express with the processing capabilities of the machine and result in user-friendly and self-explanatory interfaces. However, practically no details have been published so far how these predictive techniques can actually be implemented in a controlled natural language processor that processes a text incrementally. In this paper, we will make up for this neglect and show how these predictive techniques have been implemented for the controlled natural language processor of PENG Light and discuss how the language processor uses these techniques while communicating over an HTTP connection with a simple AJAX-based tool designed for annotating web pages in controlled natural language.", "cite_spans": [ { "start": 194, "end": 214, "text": "(Fuchs et al., 1998;", "ref_id": "BIBREF7" }, { "start": 215, "end": 231, "text": "Schwitter, 2002;", "ref_id": "BIBREF17" }, { "start": 232, "end": 243, "text": "Sowa, 2004;", "ref_id": "BIBREF20" }, { "start": 244, "end": 264, "text": "Barker et al., 2007)", "ref_id": "BIBREF1" }, { "start": 1079, "end": 1101, "text": "(Tennant et al., 1983;", "ref_id": "BIBREF22" }, { "start": 1102, "end": 1125, "text": "Schwitter et al., 2003;", "ref_id": "BIBREF18" }, { "start": 1126, "end": 1137, "text": "Kuhn, 2008)", "ref_id": "BIBREF13" } ], "ref_spans": [], "eq_spans": [], "section": "Introduction", "sec_num": "1" }, { "text": "The rest of this paper is structured as follows: In Section 2, we give a brief overview of existing computer-processable controlled natural languages. In Section 3, we introduce FoxPENG, a simple Firefox extension that we have built for annotating web pages with controlled natu-ral language and use this extension as a vehicle for motivating predictive editing techniques. In Section 4, we give a brief introduction to the controlled natural language PENG Light and show how sentences can be anaphorically linked and finally translated into discourse representation structures. In Section 5, we present the latest version of the chart parser of PENG Light and focus on the incremental processing of simple and compound words. In Section 6, we discuss what user interaction is required for processing unknown content words and suggest a linear microformat for specifying feature structures. In Section 7, we summarise the advantages of our controlled natural language approach for specifying a piece of knowledge.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Introduction", "sec_num": "1" }, { "text": "During the last decade, a number of computerprocessable controlled natural languages have been designed and used for specification purposes, knowledge acquisition and knowledge representation, and as interface languages to the Semantic Web -among them Attempto Controlled English (ACE) (Fuchs et al., 1998; Fuchs et al., 2008) , Processable English (Schwitter, 2002) , Common Logic Controlled English (Sowa, 2004) , and recently Boeing's Computer-Processable Language (Clark et al., 2005; Clark et al., 2007) . Some machine-oriented controlled natural languages require the author to learn a small number of construction and interpretation rules (Fuchs et al., 2008) , while other controlled natural languages provide writing support which takes most of the burden of learning and remembering the language from the author . The commercial success of the human-oriented controlled natural language ASD Simplified Technical English (ASD, 2007) suggests that people can learn to work with restricted English and that good authoring tools can drastically reduce the learning curve of the language.", "cite_spans": [ { "start": 286, "end": 306, "text": "(Fuchs et al., 1998;", "ref_id": "BIBREF7" }, { "start": 307, "end": 326, "text": "Fuchs et al., 2008)", "ref_id": "BIBREF8" }, { "start": 349, "end": 366, "text": "(Schwitter, 2002)", "ref_id": "BIBREF17" }, { "start": 401, "end": 413, "text": "(Sowa, 2004)", "ref_id": "BIBREF20" }, { "start": 468, "end": 488, "text": "(Clark et al., 2005;", "ref_id": "BIBREF3" }, { "start": 489, "end": 508, "text": "Clark et al., 2007)", "ref_id": "BIBREF4" }, { "start": 646, "end": 666, "text": "(Fuchs et al., 2008)", "ref_id": "BIBREF8" }, { "start": 930, "end": 941, "text": "(ASD, 2007)", "ref_id": null } ], "ref_spans": [], "eq_spans": [], "section": "Related Controlled Natural Languages", "sec_num": "2" }, { "text": "The language processors of ACE and PENG Light are both based on grammars that are written in a definite clause grammar (DCG) notation (Pereira and Shieber, 1987) . These DCGs are enhanced with feature structures and specifically designed to translate declarative and interrogative sentences into a first-order logic notation via discourse representation structures (Kamp and Reyle, 1993) . In contrast to ACE that uses the DCG directly and resolves anaphoric references only after a discourse representation structure has been constructed, PENG Light transforms the DCG into a format that can be processed by a top-down chart parser and resolves anaphoric references during the parsing process while a discourse representation structure is built up.", "cite_spans": [ { "start": 134, "end": 161, "text": "(Pereira and Shieber, 1987)", "ref_id": "BIBREF16" }, { "start": 365, "end": 387, "text": "(Kamp and Reyle, 1993)", "ref_id": "BIBREF10" } ], "ref_spans": [], "eq_spans": [], "section": "Related Controlled Natural Languages", "sec_num": "2" }, { "text": "In order to annotate web pages with information that is at the same time human-readable and machine-processable, we developed FoxPENG, an AJAX-based Firefox extension (see Figure 1) . FoxPENG supports the writing of annotations with the help of look-ahead information that indicates what syntactic categories or word forms can follow the current input. This look-ahead information is dynamically generated and updated by the language processor while an annotation is written. This application has some similarities to Google Suggest 1 and other autocomplete mechanisms 2 provided by source code editors, database query tools, and command line interpreters.", "cite_spans": [], "ref_spans": [ { "start": 172, "end": 181, "text": "Figure 1)", "ref_id": "FIGREF0" } ], "eq_spans": [], "section": "The FoxPENG Toolbar", "sec_num": "3" }, { "text": "In contrast to Google Suggest that guesses what an author writes, the look-ahead information displayed in FoxPENG is a side-effect of the parsing process of the controlled natural language. Fox-PENG communicates asynchronously with the language processor of PENG Light via a Prolog HTTP server 3 using JSON 4 (JavaScript Object Notation) as data-interchange format.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "The FoxPENG Toolbar", "sec_num": "3" }, { "text": "Once a connection to the Prolog server has been established, FoxPENG makes a request for the initial look-ahead categories to be displayed along the lower section of the toolbar. The author can now start typing an annotation that begins with a word form that falls under the corresponding look-ahead categories. Once a simple word form has been entered and the space bar has been pressed, an HTTP request is sent to the language processor containing the word form as well as the position of the word in the sentence. The chart parser of PENG Light processes this information and either replies with a set of new look-ahead categories and word forms to choose from or with spelling suggestions in case of an error. The spelling suggestions are derived from the entries in the linguistic lexicon of PENG Light. If a content word is not misspelled and cannot be found in the linguistic lexicon, then the author can specify this word directly in the text area of Fox-PENG using a microformat for linearised feature structures (see Section 6). An annotation can consist of more than one PENG Light sentence, and the language processor can resolve anaphoric references during the writing process using the standard accessibility constraints imposed by the discourse representation structures (see Section 4). The resulting discourse representation structure can be further translated into the input format of an automated reasoning engine and then be used for various reasoning tasks, among them for question answering. We have used the theorem prover and model builder E-KRHyper (Baumgartner et al., 2007) as reasoning service for PENG Light.", "cite_spans": [ { "start": 1574, "end": 1600, "text": "(Baumgartner et al., 2007)", "ref_id": "BIBREF2" } ], "ref_spans": [], "eq_spans": [], "section": "The FoxPENG Toolbar", "sec_num": "3" }, { "text": "The author can publish a FoxPENG annotation as part of an RSS feed that contains a link to the annotated web page. In principle, any RSS feed aggregator can subscribe to such an RSS feed that is written in controlled natural language. This has the benefit that annotations are not only humanreadable but also machine-processable (with the help of a PENG-compliant language processor).", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "The FoxPENG Toolbar", "sec_num": "3" }, { "text": "PENG Light is a computer-processable controlled natural language that can be used for knowledge representation (Schwitter, 2008) . At first glance, PENG Light looks like a subset of natural language, but PENG Light is actually a formal language since the language is designed in such a way that it can be translated unambiguously into a formal target representation. The vocabulary of PENG Light consists of predefined function words (determiners, coordinators, subordinators, prepositions and query words), a small number of predefined phrases (e.g. there is, it is false that) and content words (nouns, proper nouns, verbs, adjectives and adverbs) that can be defined by the author. A PENG text is a sequence of anaphorically interrelated sentences that consist of simple and complex sentences.", "cite_spans": [ { "start": 111, "end": 128, "text": "(Schwitter, 2008)", "ref_id": "BIBREF19" } ], "ref_spans": [], "eq_spans": [], "section": "PENG Light", "sec_num": "4" }, { "text": "PENG Light distinguishes between simple, complex, and interrogative sentences. Simple sentences consist of a subject and a verb (1-6), necessary complements (2-5), and optional adjuncts (5+6): Complex sentences are built from simpler sentences through quantification (7+8), negation (9-11), subordination (12), and coordination (13): Interrogative sentences are derived from simple PENG Light sentences and serve the same purpose as queries in a formal query language.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Sentences in PENG Light", "sec_num": "4.1" }, { "text": "In PENG Light, proper nouns, definite noun phrases and variables (that build an unambiguous alternative to pronouns) can be used anaphorically. The anaphora resolution algorithm of PENG Light resolves an anaphorically used noun phrase with the most recent accessible noun phrase antecedent that matches fully or partially with the anaphor and that agrees in person, number and gender with that anaphor. The anaphora resolution algorithm of PENG Light is embedded into the grammar and triggered whenever a noun phrase has been processed.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Anaphora Resolution", "sec_num": "4.2" }, { "text": "If a definite noun phrase can not be resolved by the anaphora resolution algorithm, it is interpreted as an indefinite noun phrase and introduces a new discourse referent into the universe of discourse.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Anaphora Resolution", "sec_num": "4.2" }, { "text": "The language processor (DRS version) of the PENG Light system translates texts incrementally into TPTP notation (Sutcliffe and Suttner, 1998) with the help of discourse representation structures (DRSs) (Kamp and Reyle, 1993) . The DRSs used in PENG Light rely on an event based notation (Davidson, 1967; Parsons, 1994 ) and a small number of thematic roles similar to (Kipper et al., 2008) . Some of the conditions in the resulting DRS are annotated with syntactic information in order to improve the processability of the DRS by other system components (for example, the anaphora resolution algorithm). These conditions have the form Pred#Anno whereas Pred is a predefined predicate and Anno is a list that contains syntactic information. Figure 2 shows a simple DRS for the sentence (18):", "cite_spans": [ { "start": 112, "end": 141, "text": "(Sutcliffe and Suttner, 1998)", "ref_id": "BIBREF21" }, { "start": 202, "end": 224, "text": "(Kamp and Reyle, 1993)", "ref_id": "BIBREF10" }, { "start": 287, "end": 303, "text": "(Davidson, 1967;", "ref_id": "BIBREF6" }, { "start": 304, "end": 317, "text": "Parsons, 1994", "ref_id": "BIBREF15" }, { "start": 368, "end": 389, "text": "(Kipper et al., 2008)", "ref_id": "BIBREF12" } ], "ref_spans": [ { "start": 740, "end": 748, "text": "Figure 2", "ref_id": null } ], "eq_spans": [], "section": "Discourse Representation Structures", "sec_num": "4.3" }, { "text": "18. David Miller works at Macquarie University.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Discourse Representation Structures", "sec_num": "4.3" }, { "text": "The grammar of PENG Light contains not only feature structures for DRSs but also feature structures for syntactic and pragmatic information. In PENG Light, the construction of a DRS always runs in parallel with the construction of a syntax tree and a paraphrase. The paraphrase clarifies how the input has been interpreted by the grammar and can be used to show the author all relevant substitutions.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Discourse Representation Structures", "sec_num": "4.3" }, { "text": "The grammar of PENG Light is specified in definite clause grammar (DCG) notation. However, the direct execution of a DCG would create many partial structures and destroy them while backtracking. This is not particularly efficient for generating look-ahead information (Kuhn and Schwitter, 2008) . In order to avoid unnecessary repetition of work and to generate look-ahead information efficiently, the DCG is transformed via term expansion (a well-known logic programming technique) into a notation that can be processed by the chart parser of PENG Light. The chart parser is based on work by (Gazdar and Mellish, 1989) but has been substantially extended to better support the incremental processing of PENG Light sentences, in particular to allow for generating look-ahead information, for processing compound words, and for resolving anaphoric references during the parsing process.", "cite_spans": [ { "start": 268, "end": 294, "text": "(Kuhn and Schwitter, 2008)", "ref_id": "BIBREF14" }, { "start": 593, "end": 619, "text": "(Gazdar and Mellish, 1989)", "ref_id": "BIBREF9" } ], "ref_spans": [], "eq_spans": [], "section": "Chart Parsing in PENG Light", "sec_num": "5" }, { "text": "In general, a chart parser stores well-formed constituents and partial constituents in a chart (= table) that consists of a series of numbered vertices that are linked by edges (Kay, 1980) . The vertices mark positions in the input and edges tell us what constituents have been recognised where for a given set of grammar rules. The chart parser of PENG Light represents edges as predicates with six arguments:", "cite_spans": [ { "start": 177, "end": 188, "text": "(Kay, 1980)", "ref_id": "BIBREF11" } ], "ref_spans": [], "eq_spans": [], "section": "Basics of Chart Parsing", "sec_num": "5.1" }, { "text": "edge(SN,V1,V2,LHS,RHSFound,RHSToFind)", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Basics of Chart Parsing", "sec_num": "5.1" }, { "text": "The first argument SN stores the sentence number, the subsequent two arguments state the existence of an edge between vertex V1 and vertex V2, and the next three arguments represent information about the grammar rule. LHS is a category on the left-hand side of a grammar rule, RHSFound is a list of confirmed categories that have been found on the right-hand side of the grammar rule, and RHSToFind is a list of categories on the righthand side that still need to be confirmed.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Basics of Chart Parsing", "sec_num": "5.1" }, { "text": "Inactive edges represent well-formed constituents where the right-hand side RHSToFind is empty, and active edges represent partial constituents where the right-hand side is not empty. The fundamental rule of chart parsing states what should happen when an inactive edge and an active edge meet. It specifies that whenever an inactive edge can extend an active edge, then a new edge (that is either active or inactive) is built and added to the chart. Finally, the prediction rule of chart parsing generates new active edges and is dependent on the first category on the right-hand side of a grammar rule and the previous state of the fundamental rule.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Basics of Chart Parsing", "sec_num": "5.1" }, { "text": "We initialise the chart top-down and guarantee that a number of active edges are added to the chart using a failure-driven loop (see (Kuhn and Schwitter, 2008) for details). This initialisation process creates, for example, the following (radically simplified) set of active edges that start and end at vertex 0for the first sentence: Additionally, the initialisation process adds the initial look-ahead information to the knowledge base. This look-ahead information consists of all those lexical categories (lexicon( )) that occur as the first element in the list of unconfirmed categories and is stored in the following way in the knowledge base:", "cite_spans": [ { "start": 133, "end": 159, "text": "(Kuhn and Schwitter, 2008)", "ref_id": "BIBREF14" } ], "ref_spans": [], "eq_spans": [], "section": "Initialising the Chart", "sec_num": "5.2" }, { "text": "edge(1,0,0,d(_),[", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Initialising the Chart", "sec_num": "5.2" }, { "text": "lookahead(FeatureStructures).", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Initialising the Chart", "sec_num": "5.2" }, { "text": "This makes it easy to extract the lookahead information since the argument FeatureStructures consists of a list of feature-value pairs that contain the required syntactic and semantic information; additionally, the language processor can use this information to extract all word forms from the linguistic lexicon for a specific category that obey the current grammatical constraints.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Initialising the Chart", "sec_num": "5.2" }, { "text": "Once the chart has been initialised and a set of look-ahead categories has been displayed, the author can enter the first word form that belongs to one of these categories. Simple word forms are stored in the following way in the lexicon of PENG Light: The chart parser uses the rule below together with Rule 4 in Figure 4 to look up a simple word (for example, John) in the lexicon: (2) add edge (SN, V1, V2, LHS, Found, [] In a first step, the chart parser generates inactive edges for each occurrence of the word form in the lexicon using Rule 2 in Figure 3 , after checking if such an edge does not already exist (Rule 1 in Figure 3 ). In the second step, the chart parser applies the fundamental rule of chart parsing recursively to inactive edges (Rule 2 in Figure 3 ) and active edges (Rule 3 in Figure 3 ). In the next step, the prediction rule of chart parsing is applied that looks for each grammar rule that has the category RHS previously used by the fundamental rule on the left-hand side (LHS), and generates new active edges for these categories. Once this has been done, the look-ahead information is updated (Rule 3 in Figure 3 ). For our example, this results in the following update of the chart:", "cite_spans": [ { "start": 397, "end": 401, "text": "(SN,", "ref_id": null }, { "start": 402, "end": 405, "text": "V1,", "ref_id": null }, { "start": 406, "end": 409, "text": "V2,", "ref_id": null }, { "start": 410, "end": 414, "text": "LHS,", "ref_id": null }, { "start": 415, "end": 421, "text": "Found,", "ref_id": null }, { "start": 422, "end": 424, "text": "[]", "ref_id": null } ], "ref_spans": [ { "start": 314, "end": 322, "text": "Figure 4", "ref_id": "FIGREF6" }, { "start": 552, "end": 560, "text": "Figure 3", "ref_id": "FIGREF4" }, { "start": 628, "end": 636, "text": "Figure 3", "ref_id": "FIGREF4" }, { "start": 764, "end": 772, "text": "Figure 3", "ref_id": "FIGREF4" }, { "start": 803, "end": 811, "text": "Figure 3", "ref_id": "FIGREF4" }, { "start": 1136, "end": 1144, "text": "Figure 3", "ref_id": "FIGREF4" } ], "eq_spans": [], "section": "Processing Simple Words", "sec_num": "5.3" }, { "text": "edge(1,0,1,s(_),[np(_)],[vp(_)]). edge(1,0,1,np(_),[pn(_)],[]). edge(1,0,1,pn(_),['John'],[]). edge(1,1,1,vp(_),[],[iv(_)]) edge(1,1,1,iv(_),[],[lexicon(_)]) ...", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Processing Simple Words", "sec_num": "5.3" }, { "text": "Note that for each subsequent simple word form that the author enters, new grammar rules are triggered, new edges are added to the chart, and a new set of look-ahead categories is generated, extracted and then -in our case -sent to FoxPENG.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Processing Simple Words", "sec_num": "5.3" }, { "text": "As we have seen in the last section, the chart parser of PENG Light handles the input in an incremental fashion on a word by word basis. This creates problems for compound words. Each compound word is stored in the linguistic lexicon as a single entry of the following form: This requires a special treatment of compound words by the chart parser since there are no grammar rules that describe the structure of these compound words, and a compound word can compete with other compound words or a simple word during processing. The chart parser of PENG Light uses three different rules (Rules 1-3 in Figure 4) to process compound words. The basic idea behind these rules is to retrieve each compound word only once from the linguistic lexicon as soon as the first element of a compound word becomes available and then maintain a store (compound word/6) that is used to process all subsequent elements of the compound word (similar to edges). This will finally result in a single edge for the compound word in the chart.", "cite_spans": [], "ref_spans": [ { "start": 599, "end": 608, "text": "Figure 4)", "ref_id": "FIGREF6" } ], "eq_spans": [], "section": "Processing Compound Words", "sec_num": "5.4" }, { "text": "Let us assume that the author is in the process of writing the compound noun laptop computer bag. After the first word (laptop) becomes available, the chart parser looks this word up in the linguistic lexicon using Rule 3 (and 4) in Figure 4 , finds that this word is the first element of a compound word, and then checks if an active edge exists that corresponds to the category (LHS) on left-hand side of the grammar rule that ( has been used for the lexicon lookup. In the next step, the chart parser updates the compound noun using the predicate update compound word/6. This predicate stores the sentence number (SN), the starting position (V1) and end position (V2) of the first element of the compound word, the category (LHS) on the left-hand side of the grammar rule, the found word ([Word]), and the remaining elements ([LAH|LAHs] ) of the compound word. These remaining elements serve as new look-ahead information. If the author enters the next word (computer), the chart parser looks up this word in the store of compound words using Rule 2 in Figure 4 , removes this word, checks if an active edge exists for this word, and then updates the store for compound words and the lookahead categories. Finally, if the author enters the last element (bag) of the compound word, then the chart parser uses Rule 1 in Figure 4 and checks if the word is the last element of a compound noun, and adds a new edge to the chart that spans the entire compound word using Rule 2 in Figure 3 , followed by a call to the fundamental rule. Note that this is a generic solution that can be used to process all categories of compound words.", "cite_spans": [ { "start": 828, "end": 839, "text": "([LAH|LAHs]", "ref_id": null } ], "ref_spans": [ { "start": 233, "end": 241, "text": "Figure 4", "ref_id": "FIGREF6" }, { "start": 1056, "end": 1064, "text": "Figure 4", "ref_id": "FIGREF6" }, { "start": 1321, "end": 1329, "text": "Figure 4", "ref_id": "FIGREF6" }, { "start": 1478, "end": 1487, "text": "Figure 3", "ref_id": "FIGREF4" } ], "eq_spans": [], "section": "Processing Compound Words", "sec_num": "5.4" }, { "text": "In principle, most function words can be displayed directly in the interface since there number is relatively small in controlled natural languages, but content words need to be structured in menus. These menus can be updated dynamically while a text is written. If the number of content words is large, then a copy of the linguistic lexicon can be loaded and maintained on the client side, and the task of the language processor is then reduced to inform the client about which categories of content words can follow the current input. In our case, PENG Light communicates with the client via a JSON object that has the following (simplified) form:", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Unknown Content Words", "sec_num": "6" }, { "text": "{\"lookahead\": [ [\"adj\",[\"colour\", \" shape\"]], [\"noun\",[\"masculine\", \"feminine\", \"masculine-feminine\", \"neuter-time\", \"neuter-entity\"]] ], \"paraphrase\": [\"A\"] } This object tells the client that either an adjective or a noun can follow the current input (in our case an indefinite determiner) and specifies syntactic and semantic constraints for these categories. This information becomes also usefulas we will see below -if a content word is not available in the linguistic lexicon.", "cite_spans": [ { "start": 14, "end": 35, "text": "[ [\"adj\",[\"colour\", \"", "ref_id": null }, { "start": 46, "end": 67, "text": "[\"noun\",[\"masculine\",", "ref_id": null } ], "ref_spans": [], "eq_spans": [], "section": "Unknown Content Words", "sec_num": "6" }, { "text": "In real world applications, there are always cases where a required content word is missing from the linguistic lexicon. PENG Light allows the author to define a content word during the writing process. If the author enters a content word into the input field of the editor that is not yet defined in the lexicon, then the spelling corrector of PENG Light is used and provides alternative spellings that correspond to available lexical entries. PENG Light uses the Daumerau rules for this purpose that cover about 80% of human spelling errors (Damerau, 1964) . These rules deal with the insertion, deletion, and substitution of single characters, and the transposition of two characters.", "cite_spans": [ { "start": 543, "end": 558, "text": "(Damerau, 1964)", "ref_id": "BIBREF5" } ], "ref_spans": [], "eq_spans": [], "section": "Unknown Content Words", "sec_num": "6" }, { "text": "If a content word is not misspelled and not in the lexicon, then the author has to add the word form to the linguistic lexicon. The grammar already constrains the set of syntactic and semantic features that the author has to specify for a new content word. Let us assume that the word laptop is not yet in the lexicon. In this case the author has to specify only that this word is neuter and belongs to the sortal category entity but not that it is singular since this information can be derived from the current position of the word in the sentence and the information in the grammar. PENG Light accepts in-line specifications of linearised feature structures in a \"microformat\" notation, for example:", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Unknown Content Words", "sec_num": "6" }, { "text": "Input: A +n-n-e:laptop+ Note that this feature structure is an abbreviated notation that contains syntactic and semantic information derived from the feature structure provided by the JSON object. The plus symbol (+) functions as a control character that switches from the text entry mode to the vocabulary entry mode. The subsequent character sequence (n-n-e) represents the required feature structure, followed by a colon (:), the actual word form (laptop), and a plus symbol (+) that quits the vocabulary entry mode. The plus sign at the end of the word is necessary in order to deal with compound words, for example:", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Unknown Content Words", "sec_num": "6" }, { "text": "Input: A +n-n-e:laptop computer bag+ Using this approach, the author needs to specify only a minimal set of features and does not need to leave the text area in order to add a new content word to the user lexicon. For each category of content words, PENG Light maintains a list of unapproved words. A new content word is always checked against this list, before it is added to the user lexicon. Once a new word form has been successfully added to the linguistic lexicon, it is immediately parsed by the language processor and new look-ahead information is generated. Note that the author can only add new content words (adjectives, nouns, verbs and adverbs) using this microformat but not function words.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Unknown Content Words", "sec_num": "6" }, { "text": "Similar to adding new content words, existing content words can be removed from the user lexicon. Alternatively, the microformat for feature structures is available from a menu of options.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Unknown Content Words", "sec_num": "6" }, { "text": "In this paper, we presented an update on the controlled natural processor of PENG Light and showed how the language processor communicates with FoxPENG, an AJAX-based Firefox extension, using JSON as data-interchange format. For each approved word form that the author enters into the text area of this tool, the chart parser of PENG Light generates a set of look-ahead categories that determine what categories of word forms can follow the current input. This way only syntactically correct input is accepted by the language processor that can be translated unambiguously into a formal target notation. We focused in particular on an extension of the chart parser of PENG Light and showed in detail how compound words for which no grammar rules exist can be parsed incrementally during the writing process. We solved the unknown word problem with the help of a microformat for linearised feature structures that allows an author to specify unknown content words during the parsing process using minimal linguistic information. The controlled natural language PENG Light can be used as a high-level specification language for different kinds of knowledge systems and can help to solve the knowledge acquisition problem. Depending on the expressivity of the controlled language, the input can currently be translated into first-order logic or into a variant of description logic.", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "Conclusions", "sec_num": "7" }, { "text": "http://www.google.com/support/websearch/bin/answer.py?answer=106230 2 http://en.wikipedia.org/wiki/Autocomplete/ 3 http://www.swi-prolog.org/packages/http.html 4 http://json.org/", "cite_spans": [], "ref_spans": [], "eq_spans": [], "section": "", "sec_num": null } ], "back_matter": [], "bib_entries": { "BIBREF0": { "ref_id": "b0", "title": "ASD Simplified Technical English. Specification ASD-STE100, International specification for the preparation of maintenance documentation in a controlled language", "authors": [], "year": null, "venue": "ASD 2007", "volume": "4", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "ASD 2007. ASD Simplified Technical English. Spec- ification ASD-STE100, International specification for the preparation of maintenance documentation in a controlled language, Issue 4, January.", "links": null }, "BIBREF1": { "ref_id": "b1", "title": "Learning by Reading: A Prototype System, Performance Baseline and Lessons Learned", "authors": [ { "first": "K", "middle": [], "last": "Barker", "suffix": "" }, { "first": "B", "middle": [], "last": "Agashe", "suffix": "" }, { "first": "S.-Y", "middle": [], "last": "Chaw", "suffix": "" }, { "first": "J", "middle": [], "last": "Fan", "suffix": "" }, { "first": "N", "middle": [], "last": "Friedland", "suffix": "" }, { "first": "M", "middle": [], "last": "Glass", "suffix": "" }, { "first": "J", "middle": [], "last": "Hobbs", "suffix": "" }, { "first": "E", "middle": [], "last": "Hovy", "suffix": "" }, { "first": "D", "middle": [], "last": "Israel", "suffix": "" }, { "first": "D", "middle": [ "S" ], "last": "Kim", "suffix": "" }, { "first": "R", "middle": [], "last": "Mulkar-Mehta", "suffix": "" }, { "first": "S", "middle": [], "last": "Patwardhan", "suffix": "" }, { "first": "B", "middle": [], "last": "Porter", "suffix": "" }, { "first": "D", "middle": [], "last": "Tecuci", "suffix": "" }, { "first": "P", "middle": [], "last": "Yeh", "suffix": "" } ], "year": 2007, "venue": "Proceedings of the 22nd AAAI Conference on Artificial Intelligence", "volume": "", "issue": "", "pages": "280--286", "other_ids": {}, "num": null, "urls": [], "raw_text": "K. Barker, B. Agashe, S.-Y. Chaw, J. Fan, N. Fried- land, M. Glass, J. Hobbs, E. Hovy, D. Israel, D.S. Kim, R. Mulkar-Mehta, S. Patwardhan, B. Porter, D. Tecuci, and P. Yeh. 2007. Learning by Read- ing: A Prototype System, Performance Baseline and Lessons Learned. In: Proceedings of the 22nd AAAI Conference on Artificial Intelligence, pp. 280-286.", "links": null }, "BIBREF2": { "ref_id": "b2", "title": "Hyper Tableaux with Equality", "authors": [ { "first": "P", "middle": [], "last": "Baumgartner", "suffix": "" }, { "first": "U", "middle": [], "last": "Furbach", "suffix": "" }, { "first": "B", "middle": [], "last": "Pelzer", "suffix": "" } ], "year": 2007, "venue": "Proceedings of CADE-21, LNAI 4603", "volume": "", "issue": "", "pages": "492--507", "other_ids": {}, "num": null, "urls": [], "raw_text": "P. Baumgartner, U. Furbach, and B. Pelzer. 2007. Hyper Tableaux with Equality. In: Proceedings of CADE-21, LNAI 4603, pp. 492-507.", "links": null }, "BIBREF3": { "ref_id": "b3", "title": "Acquiring and Using World Knowledge Using a Restricted Subset of English", "authors": [ { "first": "P", "middle": [], "last": "Clark", "suffix": "" }, { "first": "P", "middle": [], "last": "Harrison", "suffix": "" }, { "first": "T", "middle": [], "last": "Jenkins", "suffix": "" }, { "first": "T", "middle": [], "last": "Thompson", "suffix": "" }, { "first": "R", "middle": [], "last": "Wojcik", "suffix": "" } ], "year": 2005, "venue": "Proceedings of FLAIRS'05", "volume": "", "issue": "", "pages": "506--511", "other_ids": {}, "num": null, "urls": [], "raw_text": "P. Clark, P. Harrison, T. Jenkins, T. Thompson, and R. Wojcik. 2005. Acquiring and Using World Knowl- edge Using a Restricted Subset of English. In: Pro- ceedings of FLAIRS'05, pp. 506-511.", "links": null }, "BIBREF4": { "ref_id": "b4", "title": "Reading to Learn: An Investigation into Language Understanding", "authors": [ { "first": "P", "middle": [], "last": "Clark", "suffix": "" }, { "first": "P", "middle": [], "last": "Harrison", "suffix": "" }, { "first": "J", "middle": [], "last": "Thompson", "suffix": "" }, { "first": "R", "middle": [], "last": "Wojcik", "suffix": "" }, { "first": "T", "middle": [], "last": "Jenkins", "suffix": "" }, { "first": "D", "middle": [], "last": "Israel", "suffix": "" } ], "year": 2007, "venue": "Proceedings of AAAI 2007 Spring Symposium on Machine Reading", "volume": "", "issue": "", "pages": "29--35", "other_ids": {}, "num": null, "urls": [], "raw_text": "P. Clark, P. Harrison, J. Thompson, R. Wojcik, T. Jenk- ins, and D. Israel. 2007. Reading to Learn: An In- vestigation into Language Understanding. In: Pro- ceedings of AAAI 2007 Spring Symposium on Ma- chine Reading, pp. 29-35.", "links": null }, "BIBREF5": { "ref_id": "b5", "title": "A technique for computer detection and correction of spelling errors", "authors": [ { "first": "F", "middle": [ "J" ], "last": "Damerau", "suffix": "" } ], "year": 1964, "venue": "Communications of the ACM", "volume": "7", "issue": "", "pages": "171--176", "other_ids": {}, "num": null, "urls": [], "raw_text": "F.J. Damerau. 1964. A technique for computer detec- tion and correction of spelling errors. In: Commu- nications of the ACM, 7(3), pp. 171-176.", "links": null }, "BIBREF6": { "ref_id": "b6", "title": "The logical form of action sentences", "authors": [ { "first": "D", "middle": [], "last": "Davidson", "suffix": "" } ], "year": 1967, "venue": "", "volume": "", "issue": "", "pages": "81--95", "other_ids": {}, "num": null, "urls": [], "raw_text": "D. Davidson. 1967. The logical form of action sen- tences. In: Rescher, N. (ed.): The Logic of Deci- sion and Action. University of Pittsburgh Press, pp. 81-95.", "links": null }, "BIBREF7": { "ref_id": "b7", "title": "Attempto Controlled English -Not Just Another Logic Specification Language", "authors": [ { "first": "N", "middle": [ "E" ], "last": "Fuchs", "suffix": "" }, { "first": "U", "middle": [], "last": "Schwertel", "suffix": "" }, { "first": "R", "middle": [], "last": "Schwitter", "suffix": "" } ], "year": 1998, "venue": "Proceedings of LOPSTR'98", "volume": "", "issue": "", "pages": "1--20", "other_ids": {}, "num": null, "urls": [], "raw_text": "N.E. Fuchs, U. Schwertel, and R. Schwitter. 1998. Attempto Controlled English -Not Just Another Logic Specification Language. In: Proceedings of LOPSTR'98, pp. 1-20.", "links": null }, "BIBREF8": { "ref_id": "b8", "title": "Attempto Controlled English for Knowledge Representation", "authors": [ { "first": "N", "middle": [ "E" ], "last": "Fuchs", "suffix": "" }, { "first": "K", "middle": [], "last": "Kaljurand", "suffix": "" }, { "first": "T", "middle": [], "last": "Kuhn", "suffix": "" } ], "year": 2008, "venue": "Reasoning Web, Fourth International Summer School 2008", "volume": "5224", "issue": "", "pages": "104--124", "other_ids": {}, "num": null, "urls": [], "raw_text": "N.E. Fuchs, K. Kaljurand, and T. Kuhn. 2008. At- tempto Controlled English for Knowledge Repre- sentation. In: Reasoning Web, Fourth International Summer School 2008, LNCS 5224, pp. 104-124.", "links": null }, "BIBREF9": { "ref_id": "b9", "title": "Natural Language Processing in Prolog. An Introduction to Computational Linguistics", "authors": [ { "first": "G", "middle": [], "last": "Gazdar", "suffix": "" }, { "first": "C", "middle": [], "last": "Mellish", "suffix": "" } ], "year": 1989, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "G. Gazdar, C. Mellish. 1989. Natural Language Pro- cessing in Prolog. An Introduction to Computa- tional Linguistics, Addison-Wesley.", "links": null }, "BIBREF10": { "ref_id": "b10", "title": "From Discourse to Logic. Introduction to Modeltheoretic Semantics of Natural Language, Formal Logic and Discourse Representation Theory", "authors": [ { "first": "H", "middle": [], "last": "Kamp", "suffix": "" }, { "first": "U", "middle": [], "last": "Reyle", "suffix": "" } ], "year": 1993, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "H. Kamp, U. Reyle. 1993. From Discourse to Logic. Introduction to Modeltheoretic Semantics of Natu- ral Language, Formal Logic and Discourse Repre- sentation Theory, Kluwer.", "links": null }, "BIBREF11": { "ref_id": "b11", "title": "Algorithm Schemata and Data Structures in Syntactic Processing", "authors": [ { "first": "M", "middle": [], "last": "Kay", "suffix": "" } ], "year": 1980, "venue": "CSL-80-12", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "M. Kay. 1980. Algorithm Schemata and Data Struc- tures in Syntactic Processing. In: CSL-80-12, Xe- rox Parc, Palo Alto, California.", "links": null }, "BIBREF12": { "ref_id": "b12", "title": "A large-scale classification of english verbs", "authors": [ { "first": "K", "middle": [], "last": "Kipper", "suffix": "" }, { "first": "A", "middle": [], "last": "Korhonen", "suffix": "" }, { "first": "N", "middle": [], "last": "Ryant", "suffix": "" }, { "first": "M", "middle": [], "last": "Palmer", "suffix": "" } ], "year": 2008, "venue": "Language Resources and Evaluation", "volume": "42", "issue": "1", "pages": "21--40", "other_ids": {}, "num": null, "urls": [], "raw_text": "K. Kipper, A. Korhonen, N. Ryant, and M. Palmer. 2008. A large-scale classification of english verbs. In: Language Resources and Evaluation 42(1), pp. 21-40.", "links": null }, "BIBREF13": { "ref_id": "b13", "title": "AceWiki: A Natural and Expressive Semantic Wiki", "authors": [ { "first": "T", "middle": [], "last": "Kuhn", "suffix": "" } ], "year": 2008, "venue": "Proceedings of Semantic Web User Interaction at CHI 2008: Exploring HCI Challenges", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "T. Kuhn. 2008. AceWiki: A Natural and Expres- sive Semantic Wiki. In: Proceedings of Semantic Web User Interaction at CHI 2008: Exploring HCI Challenges.", "links": null }, "BIBREF14": { "ref_id": "b14", "title": "Writing Support for Controlled Natural Languages", "authors": [ { "first": "R", "middle": [], "last": "Kuhn", "suffix": "" }, { "first": "", "middle": [], "last": "Schwitter", "suffix": "" } ], "year": 2008, "venue": "Proceedings of ALTA 2008", "volume": "", "issue": "", "pages": "46--54", "other_ids": {}, "num": null, "urls": [], "raw_text": "Kuhn, R. Schwitter. 2008. Writing Support for Controlled Natural Languages. In: Proceedings of ALTA 2008, Tasmania, Australia, pp. 46-54.", "links": null }, "BIBREF15": { "ref_id": "b15", "title": "Events in the Semantics of English. A Study in Subatomic Semantics", "authors": [ { "first": "T", "middle": [], "last": "Parsons", "suffix": "" } ], "year": 1994, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "T. Parsons. 1994. Events in the Semantics of English. A Study in Subatomic Semantics. MIT Press.", "links": null }, "BIBREF16": { "ref_id": "b16", "title": "Prolog and Natural-Language Analysis. CSLI, Lecture Notes", "authors": [ { "first": "F", "middle": [ "C N" ], "last": "Pereira", "suffix": "" }, { "first": "S", "middle": [ "M" ], "last": "Shieber", "suffix": "" } ], "year": 1987, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "F.C.N. Pereira, S.M. Shieber. 1987. Prolog and Natural-Language Analysis. CSLI, Lecture Notes, Number 10.", "links": null }, "BIBREF17": { "ref_id": "b17", "title": "English as a Formal Specification Language", "authors": [ { "first": "R", "middle": [], "last": "Schwitter", "suffix": "" } ], "year": 2002, "venue": "Proceedings of DEXA 2002", "volume": "", "issue": "", "pages": "228--232", "other_ids": {}, "num": null, "urls": [], "raw_text": "R. Schwitter. 2002. English as a Formal Specifica- tion Language. In: Proceedings of DEXA 2002, September 2-6, Aix-en-Provence, France, pp. 228- 232.", "links": null }, "BIBREF18": { "ref_id": "b18", "title": "ECOLE -A Look-ahead Editor for a Controlled Language", "authors": [ { "first": "R", "middle": [], "last": "Schwitter", "suffix": "" }, { "first": "A", "middle": [], "last": "Ljungberg", "suffix": "" }, { "first": "D", "middle": [], "last": "Hood", "suffix": "" } ], "year": 2003, "venue": "Proceedings of EAMT-CLAW03", "volume": "", "issue": "", "pages": "141--150", "other_ids": {}, "num": null, "urls": [], "raw_text": "R. Schwitter, A. Ljungberg, and D. Hood. 2003. ECOLE -A Look-ahead Editor for a Controlled Language, In: Proceedings of EAMT-CLAW03, May 15-17, Dublin City University, Ireland, pp. 141-150.", "links": null }, "BIBREF19": { "ref_id": "b19", "title": "Working for Two: a Bidirectional Grammar for a Controlled Natural Language", "authors": [ { "first": "R", "middle": [], "last": "Schwitter", "suffix": "" } ], "year": 2008, "venue": "LNAI 5360", "volume": "", "issue": "", "pages": "168--179", "other_ids": {}, "num": null, "urls": [], "raw_text": "R. Schwitter. 2008. Working for Two: a Bidirectional Grammar for a Controlled Natural Language. In: LNAI 5360, pp. 168-179.", "links": null }, "BIBREF20": { "ref_id": "b20", "title": "Common Logic Controlled English", "authors": [ { "first": "J", "middle": [ "F" ], "last": "Sowa", "suffix": "" } ], "year": 2004, "venue": "", "volume": "", "issue": "", "pages": "", "other_ids": {}, "num": null, "urls": [], "raw_text": "J.F. Sowa. 2004. Common Logic Controlled En- glish. Technical Report, 24 February 2004. http: //www.jfsowa.com/clce/specs.htm", "links": null }, "BIBREF21": { "ref_id": "b21", "title": "The TPTP Problem Library: CNF Release v1.2.1", "authors": [ { "first": "G", "middle": [], "last": "Sutcliffe", "suffix": "" }, { "first": "C", "middle": [ "B" ], "last": "Suttner", "suffix": "" } ], "year": 1998, "venue": "Journal of Automated Reasoning", "volume": "21", "issue": "2", "pages": "177--203", "other_ids": {}, "num": null, "urls": [], "raw_text": "G. Sutcliffe, C.B. Suttner. 1998. The TPTP Problem Library: CNF Release v1.2.1. In: Journal of Auto- mated Reasoning, 21(2), pp. 177-203.", "links": null }, "BIBREF22": { "ref_id": "b22", "title": "Menu-Based Natural Language Understanding", "authors": [ { "first": "H", "middle": [ "R" ], "last": "Tennant", "suffix": "" }, { "first": "K", "middle": [ "M" ], "last": "Ross", "suffix": "" }, { "first": "R", "middle": [ "M" ], "last": "Saenz", "suffix": "" }, { "first": "C", "middle": [ "W" ], "last": "Thompson", "suffix": "" }, { "first": "J", "middle": [ "R" ], "last": "Miller", "suffix": "" } ], "year": 1983, "venue": "Proceedings of the 21st Meeting of the Association for Computational Linguistics (ACL)", "volume": "", "issue": "", "pages": "51--58", "other_ids": {}, "num": null, "urls": [], "raw_text": "H.R. Tennant, K.M. Ross, R.M. Saenz, C.W. Thomp- son, and J.R. Miller. 1983. Menu-Based Natural Language Understanding. In: Proceedings of the 21st Meeting of the Association for Computational Linguistics (ACL), MIT Press, pp. 51-58.", "links": null }, "BIBREF23": { "ref_id": "b23", "title": "Talk to Your Semantic Web", "authors": [ { "first": "C", "middle": [], "last": "Thompson", "suffix": "" }, { "first": "P", "middle": [], "last": "Pazandak", "suffix": "" }, { "first": "H", "middle": [], "last": "Tennant", "suffix": "" } ], "year": 2005, "venue": "IEEE Internet Computing", "volume": "9", "issue": "6", "pages": "75--78", "other_ids": {}, "num": null, "urls": [], "raw_text": "C. Thompson, P. Pazandak, and H. Tennant. 2005. Talk to Your Semantic Web. In: IEEE Internet Computing, 9(6), pp. 75-78.", "links": null } }, "ref_entries": { "FIGREF0": { "num": null, "uris": null, "type_str": "figure", "text": "FoxPENG -Firefox Extension" }, "FIGREF1": { "num": null, "uris": null, "type_str": "figure", "text": "Miller sends a letter to Mary. 4. David Miller is in the lecture hall. 5. David Miller teaches COMP249 on Monday. 6. David Miller works fast." }, "FIGREF2": { "num": null, "uris": null, "type_str": "figure", "text": "],[s(_),pm(_)]). edge(1 0,0,s(_),[],[np(_),vp(_)]). edge(1,0,0,np(_),[],[det(_),noun(_)]). edge(1,0,0,np(_),[],[pn(_)]). edge(1,0,0,det(_),[],[lexicon(_)]). edge(1,0,0,pn(_),[],[lexicon(_)]). ..." }, "FIGREF3": { "num": null, "uris": null, "type_str": "figure", "text": "SN,V1,V2,LHS,Found,RHS) :edge(SN,V1,V2,LHS,Found,RHS), !." }, "FIGREF4": { "num": null, "uris": null, "type_str": "figure", "text": "Add Edges start_chart(SN,V1,V2,Word) :foreach(word(T,SN,V1,V2,Word,LHS), add_edge(SN,V1,V2,LHS,Word,[]))." }, "FIGREF5": { "num": null, "uris": null, "type_str": "figure", "text": ",SN,V1,V2,[Word],LHS) :compound word(SN,V0,V1,LHS,Found,[Word]), add edge(SN,V0,V2,LHS,[Word|Found],[])." }, "FIGREF6": { "num": null, "uris": null, "type_str": "figure", "text": "Processing Simple and Compound Words" }, "TABREF0": { "num": null, "type_str": "table", "content": "
[drs([A, B, C], |
[theta(A, theme, C)#[1], |
event(A, working)#[1], |
theta(A, location, B)#[1], |
named(B, macquarie university)#[1, [third, sg, neut], |
['Macquarie','University']], |
named(C, david miller)#[1, [third, sg, masc],['David','Miller']]])] |
Figure 2: Annotated Discourse Representation Structure in PENG Light |
12. David who teaches a unit supervises Mary. |
13. David teaches COMP249 and supervises Mary. |
A special form of complex sentences are con- |
ditionals (14) and definitions (15): |
14. If David Miller works on Monday then Sue |
Rosenkrantz works on Tuesday. |
15. A professor is defined as an academic who leads a re- |
search group and who teaches at least two units. |
PENG Light distinguishes two types of inter- |
rogative sentences: yes/no-questions (16) and wh- |
questions (17): |
16. Does David Miller teach a tutorial on Monday? |
17. When does David Miller who convenes COMP249 |
teach a tutorial? |