NLML — a Markup Language to Describe the Unlimited English Grammar
Paper · 2004 · Jiyou Jia
Summary
Jia tackles a practical gap in symbolic English parsing. Parsers such as an AGFL-generated one produce deeply nested trees whose labels (NP, subject, verb) mean something to linguists but are hard for downstream programs to use. The problem is worst when a sentence holds several verbs or subjects, as in relative clauses. The author's solution is NLML, a tag-based output format produced through AGFL's transduction mechanism. Its context-free grammar draws on the grammar textbooks by Chalker and by Hanks & Grandison. NLML explicitly labels mood, complexity, subjects, verb phrases, tense, person, number, circumstances and clause structure at three levels: sentence, clause and phrase. The paper shows how arbitrary utterances, including dialogue fragments, map onto this markup. It also presents two uses inside the CSIEC language-learning dialogue project. NLOMJ maps the markup onto Java objects, and NLDB stores NLML strings in database tables so earlier discourse can be reloaded without reparsing. The point is a directly queryable, editable and storable representation of grammar for dialogue systems.
Key points
- NLML is produced by AGFL's transduced output form, not by post-processing the usual indented or bracketed parse tree.
- The top-level
expressionrule lists 16 alternatives covering 11<mood>categories:- full-sentence moods: statement, question, order, full exclamation;
- fragment moods: np, adj, about, circumstances, what/how terse exclamations, subcircum.
- A max-matching priority makes full-sentence readings win, and
$PENALTYweights push fragment readings down. - The lexicon is an editable text file that stores word types, affixes and probabilities; AGFL calls the resulting probability-aware parsing hybrid parsing.
- NLOMJ models grammar elements as Java classes using inheritance and association.
- NLDB stores NLML strings in database tables split into facts, questions and fact relations. This supports context analysis for dialogue generation in CSIEC.
Interesting ideas
- I1. The parser emits a self-describing structure with named slots such as subject, verb word and mood, so a consumer can ask "what is the subject?" without searching the tree; this also resolves ambiguity when there are several clauses.
- I2. Max-matching means trying a full-sentence reading first and only falling back, under explicit penalties, to fragment readings such as a bare NP, adjective or adverbial; this suits dialogue input that is often elliptical.
- I3. Fragments receive both a mood label and their essential content word: "What a pity!" is a terse exclamation whose core is the noun "pity".
- I4. Sentence-level transformations such as negation or statement-to-question are done by editing the structured markup rather than the surface string.
- I5. Analyses are stored as serialized strings, filed by type (facts, questions, relations between facts), and rehydrated later without reparsing.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (frames): Frames could be exposed as named per-clause slots tied to a specific clause node, so questions about multi-verb sentences return the right predicate's arguments.
- I2 (tree): Fragments like "Why?" or "That one you have read." could get a scored fallback analysis instead of a forced sentence parse.
- I3 (frames): Speech-act tagging could pair the act type with its head element, helping link short replies to the previous turn.
- I4 (back): Generation could implement mood and polarity changes as edits on the meaning graph before realization, making them explainable and testable.
- I5 (world): Text-world snapshots could be persisted per category so a long discourse can be reloaded and extended cheaply.
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.English · 2,263 works
Cite
Cite as Jiyou Jia. 2004. NLML — a Markup Language to Describe the Unlimited English Grammar. arXiv:cs/0404018.
@misc{jia2004nlml,
title = {{NLML — a Markup Language to Describe the Unlimited English Grammar}},
author = {Jiyou Jia},
year = {2004},
doi = {10.48550/arxiv.cs/0404018},
eprint = {cs/0404018},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.cs/0404018}
}References
- Allen, J.: Natural language understanding. Benjamin/Cummins Publishing Inc. (1995) find
- Chalker, S.: Current English grammar. Macmillan Publishers Ltd. (1984) find
- Chomsky, N.: Three modals for the description of language. IRE transactions PGIT, 2. (1956). 113-124 find
- Chomsky, N.: Aspects of the theory of syntax. Cambridge. MIT Press. (1965) find
- Chomsky, N.: Topics in the theory of generative grammar. Mouton & Co.N.V. Publishers. (1969). find
- Chomsky, N.: Language and problems of knowledge. MIT Press. (1988) find
- Dale, R., etc. (Ed.): Handbook of natural language processing. Marcel Dekker Inc. (2000) find
- Hanks, P. & Grandison, A.: Collins gem English grammar. HarperCollins Publishers. (1994) find
- Iwanska, L. M., etc.: Natural language processing and knowledge representation: language for knowledge and knowledge for language. AAAI Press/MIT Press. (2000) find
- Jia, J.: CSIEC(Computer Simulator in Educational Communication): An Intelligent Web-Based Teaching System for Foreign Language Learning. In Proceedings of ED-MEDIA04 (World Conference on Educational Multimedia, Hypermedia and Telecommunications), accepted. Lugano, Switzerland. (2004). find
- Kay, M.: The mind system. in Rustin, R.(eds.): Natural language processing. New York: Algorithmics Press. (1973) find
- Koster, C.H.A.: Affix grammars for natural languages. In: Lecture Notes in Computer Science, Vol. 545. Springer-Verlag. (1991) find
- Pereira, F.C.N. & Warren, D.H.D.: Definite clause grammars for language analysis-A survey of the formalism and a comparison with augmented transition networks. Artificial Intelligence, Vol. 13, 3, (1980). 231-278 find
- Tapanainen, P. & Järvinen, T.:. A non-projective dependency parser. In: Proceedings of the 5th conference on Applied Natural Language Processing (1997). Washington, D.C. 64-71
- Winograd, T.: Understanding natural language. Edinburgh University Press. (1972) find
- Woods, W.A.: Transition network grammars for natural language analysis. Communication of the ACM 13. (1970). 591-606. find
- Woods, W.A.: An experimental parsing system for transition network grammars. in R. Rustin(eds.): Natural language processing. New York: Algorithmics Press. (1973). find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/jia-2004-nlml-markup-language-describe-unlimited/