Metadata-Version: 2.4
Name: pysem
Version: 1.3.0
Summary: PySem: Python library for handling semantic data in linguistics
Author-email: Johann-Mattis List <mattis.list@uni-passau.de>
Maintainer-email: Johann-Mattis List <mattis.list@uni-passau.de>, Robert Forkel <robert_forkel@eva.mpg.de>
License: MIT
Project-URL: Repository, https://github.com/lingpy/pysem.git
Keywords: linguistics,semantic data,computational linguistics,Concepticon
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: build; extra == "dev"
Requires-Dist: wheel; extra == "dev"
Requires-Dist: twine; extra == "dev"
Requires-Dist: tox; extra == "dev"
Requires-Dist: pyconcepticon; extra == "dev"
Requires-Dist: pylint; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: coverage; extra == "test"
Dynamic: license-file

# PySem: Pysen library for handling semantic data in linguistics

[![Build Status](https://github.com/lingpy/pysem/workflows/tests/badge.svg)](https://github.com/lingpy/pysem/actions?query=workflow%3Atests)
[![PyPI](https://img.shields.io/pypi/v/pysem.svg)](https://pypi.org/project/pysem)

Included **Concepticon Version**: [3.4.0](https://doi.org/10.5281/zenodo.14923561)
 
## Usage Examples

Retrieve the sense data assembled by S. A. Starostin in the STARLING software package and search for similar words:

```python
>>> from pysem.sense import Sense
>>> sns = Sense()
>>> sns.similar('arm')
[('arm', 'calf of leg', 's:bone; s:foot; s:hand', 3),
 ('arm', 'hand', 's:bone; s:foot; s:hand', 3),
 ('arm', 'shin-bone', 's:bone; s:foot; s:hand', 3),
 ('arm', 'ankle', 's:bone; s:foot', 2),
 ('arm', 'bone', 's:bone; s:foot', 2)]
```

Map data to the most recent version of the [Concepticon](https://concepticon.clld.org) project:

```python
>>> from pysem import to_concepticon
>>> to_concepticon([{"gloss": "Fuß", "pos": "noun"}], language="de")
{'Fuß': [['1301', 'FOOT', 'noun', 19]]}
```

## How to Cite

> List, Johann-Mattis (2026): PySeM. A Python library for handling semantic data in linguistics [Software, Version 1.3.0]. With contributions by Johannes Englisch and Robert Forkel. URL: https://pypi.org/project/pysem, Passau: MCL Chair at the University of Passau.
