Abstract
MDA-XML is a prototype system designed to merge structured XML documentation with the principles of "controlled authoring." By shifting the user's role from writing free text to making semantic choices, the system automatically generates grammatically correct, synchronized technical documentation in multiple languages. This paper details the development of a Java-based implementation that utilizes XML-defined grammars and a lightweight unification engine to ensure domain-specific consistency, specifically within the pharmaceutical industry.
Introduction
Writing technical documentation in fields like medicine or engineering is a complex task governed by strict regulations and linguistic requirements. While standard XML tools are effective at enforcing document structure (e.g., ensuring a notice contains a title and a composition section), they typically lack the capability to enforce semantic meaning or linguistic correctness. For example, a standard editor cannot prevent a user from erroneously stating that a "cream" should be "swallowed." Furthermore, maintaining consistency across multiple languages manually is both error-prone and costly. MDA-XML aims to bridge this gap by integrating structured data with high-quality, multilingual natural language generation (NLG).
Methods
The MDA-XML system is a Java-based evolution of the earlier "Multilingual Document Authoring" (MDA) system. It introduces several key technical innovations to facilitate controlled authoring:
Semantic-Driven Authoring
Instead of traditional text entry, authors interact with "non-terminals" or placeholders. Clicking a placeholder like [form] triggers a context-sensitive menu of valid choices, such as "syrup," "capsule," or "cream." This ensures that only valid domain concepts are selected.
XML-Based Grammars and Unification
Unlike its predecessors, which relied on proprietary Prolog-inspired syntax, MDA-XML defines linguistic and semantic rules directly in XML. This allows developers to use industrial XML editors for grammar creation. The system employs a lightweight unification engine implemented in Java to propagate constraints. For instance, selecting "cream" as the drug form automatically restricts the "container" variable to "tube" and updates the instructional text to reflect topical application rather than ingestion.
Language Independence
The core "meaning" of a document is stored in a language-neutral semantic tree. Parallel grammars are then used to "render" this tree into actual sentences in French and English simultaneously, ensuring perfect synchronization between versions.
Results
The authors successfully developed a functional, cross-platform Java application capable of real-time, interactive multilingual editing. A primary achievement is the "Automatic Mode," where a single user decision triggers a cascade of updates across the entire document in all supported languages.
The system was tested using a complex bilingual grammar for pharmaceutical patient information leaflets, comprising approximately 2,500 lines of XML code. The transition from an external Prolog interpreter to a native Java implementation resulted in significant performance gains and improved portability. By hiding the underlying XML and logic complexity, the tool remains accessible to domain experts, such as pharmacists, who may not have programming expertise.
Discussion and Conclusion
MDA-XML demonstrates that moving controlled authoring into an XML environment makes the technology more portable and easier to integrate into existing corporate workflows. However, challenges remain. Standard XML Schemas are currently too limited to express complex semantic dependencies, necessitating custom rule formats. Additionally, the current Java implementation lacks full unification, which complicates the handling of recursive structures like nested lists.
Future work will focus on integrating deeper semantic validation directly into XML schemas and conducting user experience research to determine the long-term intuitiveness of purely semantic interaction for professional authors. Despite these limitations, MDA-XML serves as a robust proof of concept for high-precision, multilingual technical documentation.
Summary updated