Work

Qumín : from a bundle of scripts to a scientific toolkit

Year: 2025
Type: conference-abstract
Abstract: Scientific software development involves finding a balance between the demands of funda-mental research and code maintenance. This contribution focuses on the example of Qumín, apython package for studying inflectional paradigms. Qumín was initially released in 2018 asa collection of scripts supporting a computational linguistics PhD thesis. While this releasewas only meant as a guarantee for replicability, the toolbox encountered an unexpected popu-larity among morphologists. As new features started to accumulate, it became necessary toreorganize the code base and to create a cleaner environment for contributors. The history ofQumín’s development illustrates the challenges that researchers may face while sharing theircode : making the code easily reusable by others, finding a balance between new featuresand long-term stability, ensuring long term maintenance beyond initial funding. We discusstwo facets of Qumín’s recent history : first, the scientific benefits of open-source software(1) ; second, the important amount of engineering required to achieve this (2). We concludewith some perspectives on Qumín’s future (3).1 Qumín for linguistsQumín (Quantitative Modelling of Inflection) is a software dedicated to studying inflectionalmorphology, and more specifically paradigm structure. The core of Qumín is an algorithmfor inferring morphologically meaningful analogical patterns from pairs of forms. Furtheranalytical steps take analogical patterns as an input to provide various insights : measuresof morphological complexity using Shannon’s entropy (Ackerman et al., 2009; Bonami& Beniamine, 2016), clustering of lexemes in hierarchical inflection classes (Beniamine,2021), etc. The initial success of Qumín was due to the ease with which it allowed forquantitative measurements of inflectional systems, requiring only unsegmented paradigmsand a description of the phonemes. Its ability to model similarly very different morpholo-gical systems (whether concatenative or not, affixal or suprasegmental) made it extremelyuseful for morphological typology. All of its outputs (analogical patterns, measurements,inflectional classifications) are easily interpretable in linguistic terms. This allows linguiststo pin-point the exact sources and mechanisms leading to structural properties. After beingused to compare Russian, French, English, Chatino, Arabic, Navajo and Portuguese in Benia-mine’s PhD (Beniamine, 2018), Qumín was employed for monolingual descriptions of theinflectional systems of Latin (Pellegrini, 2023), Portuguese (Beniamine et al., 2021), Catalan(Herce & Pricop, 2024a), Romanian (Herce & Pricop, 2024b), Pame (Herce, 2024). Studiesbeyond Romance are on-going. In other words, Qumín allowed researchers less familiar withprogramming to use quantitative methods to investigate morphology. Since its first release, Qumín had to be updated to support this successful uptake by improvingits FAIR compliance (Wilkinson M. D. et al, 2016). While its first version relied on ad-hoc filestructures for paradigms and sound descriptions, version 2.0 dropped support for this formatin favour of the Paralex standard (Beniamine et al., 2023) 1. Paralex standardizes machine-readable, morphologically rich inflected lexicons. This enabled a straightforward pipelinefrom dataset creation to its analysis, bringing significant improvements in research worflow. It is not a surprise for instance that novel Paralex datasets were released simultaneouslywith an analysis based on Qumín (Portuguese, Catalan, Romanian, Pame). Second, version2.0 ships computation results as a frictionless DataPackage, which includes an extensivemetadata description of the inputs and outputs (Fowler et al., 2017). This design choice makesdownstream consumption of computation outputs easier. Furthermore, the DataPackageincludes all the configuration settings and command line arguments that were passed toQumín, thus enabling strong reproducibility. Finally, the increasing usage of Qumín led to numerous new features, which illustrate thevirtuous circle of back-and-forth interaction between research and software development.A notable addition enabled fixed predictors in complexity measures, an addition whichsupported the work of a PhD dissertation (Pellegrini, 2023).2 Qumín for developersWhile the scientific success of Qumín made it a promising tool, its backbone, in 2018,was not appropriate for long-term stability. It was made available as a collection of scriptsmore than as a consistent package, which made further evolutions less obvious. During thesubsequent years, the code structure was slowly improved. Starting from 2023, developmentbecame more active, with the removal of exploratory features that became unnecessary andmade maintenance more difficult. At the same time, several modules were rewritten in anobject-oriented approach to increase the code modularity and to increase the ability to handlenon-canonical morphology, in particular defectiveness and overabundance. Finally, as theamount of available morphological datasets started to grow (21 lexicons to date, covering 8language families), it became necessary to introduce multiprocessing. This resulted in anenormous reduction of computation times, opening the path to large scale comparisons. While these improvements were welcome, massive changes are also likely to introducenew bugs and issues. The second step in securing the code-base involved the developmentenvironment. After the project had been moved to Gitlab, the continuous developmentpipeline was reinforced with a set of integration tests to ensure stability of the main scripts. Unfortunately, to date, unit tests only cover a small part of the code : future plans have beenlaid to extend them systematically. Although all these changes were necessary and beneficial scientifically, they were also time-consuming. Unfortunately, and this type of work tends to be valued less than productionof new scientific outputs. Beyond the initial PhD project (ending in 2018), no specificfunding has targeted Qumín’s extension and maintenance. Yet, continued engineering supportis essential for the long-term success of linguistic software. To mitigate this, Qumín wasrecently archived on Zenodo 2 and on Software Heritage, making it more easily citable.3 The future of QumínAlthough Qumín has now become a mature research software, stable and accessible to usersnot familiar with programming, it is not clear how it will evolve in the future. There are atleast two potential scientific perspectives. First, the fast growth of the Paralex ecosystemmakes it increasingly feasible to employ Qumín to conduct typological studies with a highcoverage. Second, the massive changes in the code structure made Qumín ready to work withnon-canonical morphological phenomena in a more meaningful way. Simultaneously, there are some clear scientific limits to how Qumín works : the patternsmodule, which inherits a reimplementation of minimal generalization (Albright & Hayes,2003), sometimes over- or under-generalizes ; the complexity measures, being holistic bydesign, fail to capture orthogonal complexity layers (eg. cross-cutting affixal and supra-segmental morphology). Detailed plans have been laid out to improve the situation byimplementing (a) novel analogical patterns enabling better treatement of tiered phenomenawhile maintaining interpretability ; (b) a radical review of the pattern selection algorithm,favoring standard machine-learning classifiers ; (c) further extensions of the complexitymeasures, beyond conditional entropy, to integrate analyses of non-canonical phenomenaand facilitate human interpretation. To summarize, on-going development efforts on Qumín’s code and data environment hadclear scientific benefits, making it a popular tool for quantitative morphology. The nextchallenge for Qumín’s development will be to ensure increased stability while rewriting someof the central algorithms to enabling novel analyses.
Source: HAL
Language: English
Open Access status: green
OpenAlex ID: W7207345013
Cites:
Cited by:
Related to: 10