Fluid Construction Grammar in Python

Katrien Beuls Avatar

We are happy to pre-release today a Python port of Fluid Construction Grammar!

This port, which goes by the name PyFCG, is distributed as a pip-installable package. We have also prepared three walkthrough tutorials that showcase example usage of PyFCG in typical use cases of FCG, including (i) formalising and testing construction grammar analyses, (ii) learning usage-based construction grammars from corpora, and (iii) implementing agent-based experiments on emergent communication. A short paper introducing PyFCG is also available on ArXiv: https://arxiv.org/pdf/2505.12920 .

We are currently looking for test cases, so please feel free to run the notebooks linked above on your machine and look for any problems that might arise. You are welcome to report them through this mailing list, file them as issues on the PyFCG repository, or submit merge requests. PyFCG is an open-source project, and we welcome all contributions!

We look very much forward  to learning about your experiences with PyFCG, to potential collaborations deploying PyFCG in your projects (we can support you or implement new features), or in general any feedback you might have.