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.
View on arXiv@article{eecke2025_2505.12920, title={ PyFCG: Fluid Construction Grammar in Python }, author={ Paul Van Eecke and Katrien Beuls }, journal={arXiv preprint arXiv:2505.12920}, year={ 2025 } }