pylazaro: a Python package for anglicism extraction in Spanish
Abstract
Lexical borrowings are words from one language that are introduced into another language. Identifying lexical borrowings in text is a relevant task for data-centric fields in Linguistics such as lexicography or corpus linguistics, but none of the standard libraries for text processing offers such a functionality. In this paper we present pylazaro, an open-source Python package for the automatic extraction of unassimilated lexical borrowings (mostly anglicisms) from Spanish text. pylazaro offers a single interface to five sequence labeling models that were trained using different libraries, so that users can run and switch between them without having to deal with the idiosyncrasies of each library. We describe the design and usage of the package, contrast the performance of its models with that of general-purpose LLMs (which perform poorly at this task: F1 below 0.40, compared to 0.86 for the best model in pylazaro) and report on its adoption: pylazaro has been downloaded more than 58,000 times and is the library behind Observatorio Lazaro, a resource that monitors anglicism usage in the Spanish press. pylazaro can be installed via PyPI, is documented in readthedocs and can be tried through a live demo hosted on HuggingFace Spaces.
Create a lesson
Related papers
Teaching a Multilingual Translation Model Regional Varieties: Castilian and Latin American Spanish, Asturian, Aragonese and Aranese with MADLAD-400-3B-MT
Shared title terminologycs.CLNerea de la Torre Veguillas, Pol Gerdt, Raul Quijada et al.
Tablassert: Declarative Extraction of Knowledge Graphs from Biomedical Tables
Shared title terminologycs.CLSkye L. Goetz, Jared C. Roach, Gwênlyn Glusman
Resolving the Missing Financial Data Crisis: A Generative AI Pipeline for SEC 10-K Extraction
Shared title terminologycs.CLPrisha Nair, Roee Shraga
Extraction of clinical findings from mammography and breast ultrasound reports: a comparison between specialists and Artificial Intelligence
Shared title terminologycs.CLLorenzo Farias, Hanna Reckziegel, Daniela Duarte da Silva Bagatini et al.
MexHat: A Dataset for Hate Speech Detection in Mexican Spanish Videos
Shared title terminologycs.CLItzel Tlelo-Coyotecatl, Hugo Jair Escalante
EAGER: Enhancing Generative Event Extraction via Reinforcement Learning with Verifiable Rewards
Shared title terminologycs.CLOmar Adjali, Siting Liang, Omair Shahzad Bhatti et al.