---
title: "NLML — paper by Jia (2004) — summary and ideas"
description: "Jia tackles a practical gap in symbolic English parsing. 17 references, cited by 1 paper here."
authors: ["Jiyou Jia"]
year: 2004
venue: "arXiv:cs/0404018"
source: "https://arxiv.org/abs/cs/0404018"
doi: "10.48550/arxiv.cs/0404018"
arxiv: "cs/0404018"
licence: "arXiv — no licence stated (read only)"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/jia-2004-nlml-markup-language-describe-unlimited/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/jia-2004-nlml-markup-language-describe-unlimited/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2004](https://md.research.elamur.ai/free/en/papers/2004/page/2/) / NLML — a Markup Language to Describe the Unlimited English Grammar

# NLML — a Markup Language to Describe the Unlimited English Grammar

**Authors:** [Jiyou Jia](https://md.research.elamur.ai/free/en/authors/jiyou-jia/) · **Year:** 2004 · **Venue:** arXiv:cs/0404018 · **Licence:** arXiv — no licence stated (read only)

**Links:** [Publisher's page](https://arxiv.org/abs/cs/0404018) · [PDF](https://arxiv.org/pdf/cs/0404018) · [DOI 10.48550/arxiv.cs/0404018](https://doi.org/10.48550/arxiv.cs/0404018) · [arXiv cs/0404018](https://arxiv.org/abs/cs/0404018) · [OpenAlex](https://openalex.org/W1564079883)

**Citations:** 6 citations (OpenAlex, 2026-10-14) · [1](https://md.research.elamur.ai/free/en/papers/jia-2004-nlml-markup-language-describe-unlimited/cited-by/) in our library, of the 149,439 papers whose bibliographies we read

## 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 `expression` rule 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 `$PENALTY` weights 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
- 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.
- 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.
- Fragments receive both a mood label and their essential content word: "What a pity!" is a terse exclamation whose core is the noun "pity".
- Sentence-level transformations such as negation or statement-to-question are done by editing the structured markup rather than the surface string.
- 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.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

📚 Shelves (4): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 16,667 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 16,194 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 16,039 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 15,891 works

🧭 Topics (1): [English](https://md.research.elamur.ai/free/en/topics/english/) · 2,263 works

## Cite

Cite as: Jiyou Jia. 2004. NLML — a Markup Language to Describe the Unlimited English Grammar. arXiv:cs/0404018.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@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}
}
```

- [← previous Improving Bitext Word Alignments via Syntax-based Reordering of English](https://md.research.elamur.ai/free/en/papers/drabek-2004-improving-bitext-word-alignments-syntax/)
- [next → Stylistic Fronting in the Ormulum - Scandinavian Syntactic Phenomena in Early Middle English Texts](https://md.research.elamur.ai/free/en/papers/trips-2004-stylistic-fronting-ormulum-scandinavian-syntactic/)
- [↑ back to papers of 2004](https://md.research.elamur.ai/free/en/papers/2004/page/2/)

## References

17 references, 1 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Allen, J.: Natural language understanding. Benjamin/Cummins Publishing Inc. (1995) [find](https://scholar.google.com/scholar?q=Allen%2C+J%2E%3A+Natural+language+understanding%2E+Benjamin%2FCummins+Publishing+Inc%2E+%281995%29)
2. Chalker, S.: Current English grammar. Macmillan Publishers Ltd. (1984) [find](https://scholar.google.com/scholar?q=Chalker%2C+S%2E%3A+Current+English+grammar%2E+Macmillan+Publishers+Ltd%2E+%281984%29)
3. Chomsky, N.: Three modals for the description of language. IRE transactions PGIT, 2. (1956). 113-124 [find](https://scholar.google.com/scholar?q=Chomsky%2C+N%2E%3A+Three+modals+for+the+description+of+language%2E+IRE+transactions+PGIT%2C+2%2E+%281956%29%2E+113%2D124)
4. Chomsky, N.: Aspects of the theory of syntax. Cambridge. MIT Press. (1965) [find](https://scholar.google.com/scholar?q=Chomsky%2C+N%2E%3A+Aspects+of+the+theory+of+syntax%2E+Cambridge%2E+MIT+Press%2E+%281965%29)
5. Chomsky, N.: Topics in the theory of generative grammar. Mouton & Co.N.V. Publishers. (1969). [find](https://scholar.google.com/scholar?q=Chomsky%2C+N%2E%3A+Topics+in+the+theory+of+generative+grammar%2E+Mouton+%26+Co%2EN%2EV%2E+Publishers%2E+%281969%29%2E)
6. Chomsky, N.: Language and problems of knowledge. MIT Press. (1988) [find](https://scholar.google.com/scholar?q=Chomsky%2C+N%2E%3A+Language+and+problems+of+knowledge%2E+MIT+Press%2E+%281988%29)
7. Dale, R., etc. (Ed.): Handbook of natural language processing. Marcel Dekker Inc. (2000) [find](https://scholar.google.com/scholar?q=Dale%2C+R%2E%2C+etc%2E+%28Ed%2E%29%3A+Handbook+of+natural+language+processing%2E+Marcel+Dekker+Inc%2E+%282000%29)
8. Hanks, P. & Grandison, A.: Collins gem English grammar. HarperCollins Publishers. (1994) [find](https://scholar.google.com/scholar?q=Hanks%2C+P%2E+%26+Grandison%2C+A%2E%3A+Collins+gem+English+grammar%2E+HarperCollins+Publishers%2E+%281994%29)
9. Iwanska, L. M., etc.: Natural language processing and knowledge representation: language for knowledge and knowledge for language. AAAI Press/MIT Press. (2000) [find](https://scholar.google.com/scholar?q=Iwanska%2C+L%2E+M%2E%2C+etc%2E%3A+Natural+language+processing+and+knowledge+representation%3A+language+for+knowledge+and+knowledge+for+language%2E+AAAI+Press%2FMIT+Press%2E+%282000%29)
10. 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](https://scholar.google.com/scholar?q=Jia%2C+J%2E%3A+CSIEC%28Computer+Simulator+in+Educational+Communication%29%3A+An+Intelligent+Web%2DBased+Teaching+System+for+Foreign+Language+Learning%2E+In+Proceedings+of+ED%2DMEDIA04+%28World+Conference+on+Educational+M)
11. Kay, M.: The mind system. in Rustin, R.(eds.): Natural language processing. New York: Algorithmics Press. (1973) [find](https://scholar.google.com/scholar?q=Kay%2C+M%2E%3A+The+mind+system%2E+in+Rustin%2C+R%2E%28eds%2E%29%3A+Natural+language+processing%2E+New+York%3A+Algorithmics+Press%2E+%281973%29)
12. Koster, C.H.A.: Affix grammars for natural languages. In: Lecture Notes in Computer Science, Vol. 545. Springer-Verlag. (1991) [find](https://scholar.google.com/scholar?q=Koster%2C+C%2EH%2EA%2E%3A+Affix+grammars+for+natural+languages%2E+In%3A+Lecture+Notes+in+Computer+Science%2C+Vol%2E+545%2E+Springer%2DVerlag%2E+%281991%29)
13. 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](https://scholar.google.com/scholar?q=Pereira%2C+F%2EC%2EN%2E+%26+Warren%2C+D%2EH%2ED%2E%3A+Definite+clause+grammars+for+language+analysis%2DA+survey+of+the+formalism+and+a+comparison+with+augmented+transition+networks%2E+Artificial+Intelligence%2C+Vol%2E+13%2C+3%2C+%2819)
14. Tapanainen, P. & Järvinen, T.:. [A non-projective dependency parser](https://md.research.elamur.ai/free/en/papers/tapanainen-1997-non-projective-dependency-parser/). In: Proceedings of the 5th conference on Applied Natural Language Processing (1997). Washington, D.C. 64-71
15. Winograd, T.: Understanding natural language. Edinburgh University Press. (1972) [find](https://scholar.google.com/scholar?q=Winograd%2C+T%2E%3A+Understanding+natural+language%2E+Edinburgh+University+Press%2E+%281972%29)
16. Woods, W.A.: Transition network grammars for natural language analysis. Communication of the ACM 13. (1970). 591-606. [find](https://scholar.google.com/scholar?q=Woods%2C+W%2EA%2E%3A+Transition+network+grammars+for+natural+language+analysis%2E+Communication+of+the+ACM+13%2E+%281970%29%2E+591%2D606%2E)
17. Woods, W.A.: An experimental parsing system for transition network grammars. in R. Rustin(eds.): Natural language processing. New York: Algorithmics Press. (1973). [find](https://scholar.google.com/scholar?q=Woods%2C+W%2EA%2E%3A+An+experimental+parsing+system+for+transition+network+grammars%2E+in+R%2E+Rustin%28eds%2E%29%3A+Natural+language+processing%2E+New+York%3A+Algorithmics+Press%2E+%281973%29%2E)

*Updated 29 October 2026*
