Skip to main content
QUICK REVIEW

[Paper Review] CHR Grammars

Henning Christiansen|arXiv (Cornell University)|Aug 12, 2004
Natural Language Processing TechniquesComputer Science1 citations
TL;DR

This paper introduces CHR grammars—a logic programming-based formalism extending Definite Clause Grammars by integrating Constraint Handling Rules (CHR) to enable robust, bottom-up parsing with native ambiguity handling and context-sensitive rule application. The approach supports extra-grammatical hypotheses in grammar rules, enabling powerful modeling of linguistic phenomena and straightforward implementations of Assumption Grammars and abduction under integrity constraints, positioning CHR grammars as a flexible, extensible standard for logic programming-based language processors.

ABSTRACT

A grammar formalism based upon CHR is proposed analogously to the way Definite Clause Grammars are defined and implemented on top of Prolog. These grammars execute as robust bottom-up parsers with an inherent treatment of ambiguity and a high flexibility to model various linguistic phenomena. The formalism extends previous logic programming based grammars with a form of context-sensitive rules and the possibility to include extra-grammatical hypotheses in both head and body of grammar rules. Among the applications are straightforward implementations of Assumption Grammars and abduction under integrity constraints for language analysis. CHR grammars appear as a powerful tool for specification and implementation of language processors and may be proposed as a new standard for bottom-up grammars in logic programming. To appear in Theory and Practice of Logic Programming (TPLP), 2005

Motivation & Objective

  • To develop a grammar formalism based on Constraint Handling Rules (CHR) that extends the capabilities of Definite Clause Grammars in logic programming.
  • To enable robust bottom-up parsing with native support for ambiguity resolution and context-sensitive rule application.
  • To integrate extra-grammatical hypotheses into both the head and body of grammar rules for modeling complex linguistic phenomena.
  • To provide a flexible foundation for implementing advanced language processing techniques such as Assumption Grammars and abduction under integrity constraints.
  • To establish CHR grammars as a viable and extensible standard for bottom-up grammars in logic programming.

Proposed method

  • The formalism is defined analogously to Definite Clause Grammars, but compiled and executed using CHR's constraint simplification and propagation mechanisms.
  • Grammar rules are expressed as CHR rules, where constraints represent linguistic constituents and rule bodies define structural relationships.
  • Ambiguity is inherently handled through CHR’s non-deterministic rule application and constraint store management.
  • Context-sensitivity is achieved by allowing constraints in both the head and body of rules to depend on contextual information or assumptions.
  • Extra-grammatical hypotheses are encoded as constraints that can be asserted or assumed during parsing, enabling abduction and integrity constraint checking.
  • The execution model leverages CHR’s efficient, incremental constraint solving to support efficient, incremental language processing.

Experimental results

Research questions

  • RQ1How can Constraint Handling Rules (CHR) be used to define a robust, extensible grammar formalism for logic programming?
  • RQ2In what ways can CHR grammars naturally handle ambiguity in language parsing compared to traditional formalisms?
  • RQ3How can context-sensitive rules be integrated into a logic programming grammar formalism using CHR?
  • RQ4Can extra-grammatical hypotheses be effectively modeled within grammar rules to support abduction and integrity constraint checking?
  • RQ5To what extent can CHR grammars serve as a new standard for bottom-up grammars in logic programming?

Key findings

  • CHR grammars provide a natural and efficient framework for bottom-up parsing with inherent support for ambiguity resolution through CHR’s constraint simplification and propagation.
  • The integration of extra-grammatical hypotheses into both rule heads and bodies enables powerful modeling of linguistic phenomena such as default reasoning and assumption-based parsing.
  • The formalism supports straightforward implementation of Assumption Grammars and abduction under integrity constraints, extending the expressive power of logic programming-based grammars.
  • CHR grammars demonstrate high flexibility in modeling complex linguistic structures due to the declarative and modular nature of CHR rules.
  • The approach positions CHR grammars as a strong candidate for a new standard in logic programming-based language processors, particularly for bottom-up parsing.

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.