Skip to main content
QUICK REVIEW

[Paper Review] Computational Representation of Linguistic Structures using Domain-Specific Languages

Fabian Steeg, Christoph Benden|ArXiv.org|May 21, 2008
Natural Language Processing TechniquesComputer Science10 references32 citations
TL;DR

This paper presents a modular, domain-specific language (DSL)-based system for computing linguistic structures using Functional Grammar and Functional Discourse Grammar notations, implemented via ANTLR for syntax validation and Prolog for lexical and rule processing. The key contribution is demonstrating that DSLs enable consistent, formal, and executable linguistic descriptions that can be validated, reused, and executed in natural language generation systems.

ABSTRACT

We describe a modular system for generating sentences from formal definitions of underlying linguistic structures using domain-specific languages. The system uses Java in general, Prolog for lexical entries and custom domain-specific languages based on Functional Grammar and Functional Discourse Grammar notation, implemented using the ANTLR parser generator. We show how linguistic and technological parts can be brought together in a natural language processing system and how domain-specific languages can be used as a tool for consistent formal notation in linguistic description.

Motivation & Objective

  • To develop a modular system for generating natural language expressions from formal linguistic structures using domain-specific languages (DSLs).
  • To integrate linguistic theory—specifically Functional Grammar (FG) and Functional Discourse Grammar (FDG)—into a computationally executable framework.
  • To demonstrate that DSLs can serve as a consistent, formal notation for linguistic description that supports validation, reuse, and execution.
  • To enable linguists to create, validate, and execute linguistic representations akin to writing code, formulas, or musical notation.

Proposed method

  • The system uses a three-tier architecture with separate modules for input, processing, and output, enabling modularity and reuse.
  • A custom DSL for underlying linguistic structures is defined using ANTLR, which generates a parser from an EBNF-like grammar specification.
  • Input structures based on Functional Grammar notation are parsed into an internal Java object representation and then converted into a Prolog-compatible format.
  • Lexical entries and syntactic rules are encoded as Prolog facts and rules, leveraging Prolog’s strengths in symbolic logic and pattern matching.
  • The grammar module uses SWI-Prolog to generate surface linguistic expressions from the Prolog representation, with Interprolog enabling Java-Prolog interoperability.
  • The system supports both desktop and web-based interfaces, with processing handled server-side, enabling collaborative development and deployment.

Experimental results

Research questions

  • RQ1Can domain-specific languages be effectively used to formalize and validate linguistic structures in Functional Grammar and Functional Discourse Grammar?
  • RQ2How can a modular architecture combining Java, Prolog, and ANTLR enable consistent and extensible linguistic knowledge representation in NLP systems?
  • RQ3To what extent can computational implementation serve as an evaluation tool for linguistic theories through executable formalizations?
  • RQ4Can DSLs provide a unified, formal, and executable notation for diverse linguistic structures, including lexical entries and clause-level representations?

Key findings

  • The system successfully generates natural language expressions from formal linguistic structures defined in Functional Grammar notation, as demonstrated by sample outputs like 'The old farmers had given soft ducklings to the young women'.
  • ANTLR-generated parsers validate the syntactic correctness of linguistic structures, and the parse tree analysis confirms that malformed inputs are correctly rejected.
  • The use of Prolog as a DSL for lexical entries and rules enables efficient and declarative representation of verbs, their arguments, and syntactic features such as voice, tense, and agreement.
  • The modular architecture allows the same processing pipeline to be reused across different interfaces (desktop and web) and extended to support new linguistic theories like Functional Discourse Grammar.
  • The system demonstrates that linguistic descriptions can be treated as executable code, with formal structures validated and processed in a reproducible, machine-checkable way.
  • The integration of DSLs with general-purpose languages like Java and domain-specific logic languages like Prolog enables a scalable and maintainable framework for linguistic knowledge representation in NLP.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.