🤖 AI Summary
This paper addresses the integration bottleneck of Fluid Construction Grammar (FCG) in mainstream programming environments by introducing PyFCG—the first complete, efficient, and scalable native Python implementation. Leveraging object-oriented design, dynamic grammar parsing, a hybrid symbolic-probabilistic representation, and a graph-based construction-matching engine, PyFCG enables seamless interoperability with key Python ecosystem libraries such as NumPy and NLTK. Its core contributions are threefold: (1) an open-source, unified framework for FCG modeling and execution; (2) corpus-driven, usage-based construction learning grounded in empirical linguistic data; and (3) support for multi-agent simulations of language evolution. All components are publicly available under an open-source license and accompanied by interactive tutorials. By unifying formal grammatical theory with modern computational infrastructure, PyFCG substantially lowers the barrier to entry for construction grammar modeling and computational linguistics experimentation.
📝 Abstract
We present PyFCG, an open source software library that ports Fluid Construction Grammar (FCG) to the Python programming language. PyFCG enables its users to seamlessly integrate FCG functionality into Python programs, and to use FCG in combination with other libraries within Python's rich ecosystem. Apart from a general description of the library, this paper provides three walkthrough tutorials that demonstrate example usage of PyFCG in typical use cases of FCG: (i) formalising and testing construction grammar analyses, (ii) learning usage-based construction grammars from corpora, and (iii) implementing agent-based experiments on emergent communication.