NILE: Formalizing Natural-Language Descriptions of Formal Languages
Tristan Kneisel, Marko Schmellenkamp, Fabian Vehlken, Thomas Zeume

TL;DR
This paper introduces Nile, a formal language representation that mirrors natural-language descriptions of formal languages, enabling automated assessment and explanation of inaccuracies in educational contexts using large language models.
Contribution
The paper presents Nile, a novel expressive formal language representation aligned with natural language, and demonstrates its effectiveness in educational scenarios for evaluating and explaining formal language descriptions.
Findings
LLMs can accurately translate natural language to Nile expressions.
Nile expressions are syntactically close to natural descriptions, facilitating explanations.
Regular expressions are less suitable for explanations due to lack of syntactic closeness.
Abstract
This paper explores how natural-language descriptions of formal languages can be compared to their formal representations and how semantic differences can be explained. This is motivated from educational scenarios where learners describe a formal language (presented, e.g., by a finite state automaton, regular expression, pushdown automaton, context-free grammar or in set notation) in natural language, and an educational support system has to (1) judge whether the natural-language description accurately describes the formal language, and to (2) provide explanations why descriptions are not accurate. To address this question, we introduce a representation language for formal languages, Nile, which is designed so that Nile expressions can mirror the syntactic structure of natural-language descriptions of formal languages. Nile is sufficiently expressive to cover a broad variety of formal…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsIntelligent Tutoring Systems and Adaptive Learning · Natural Language Processing Techniques · Multimodal Machine Learning Applications
