Metadata-Version: 2.3
Name: hits-to-stts
Version: 0.1.0
Summary: Convert HiTS part-of-speech tags to STTS tags.
License: MIT License
         
         Copyright (c) 2024 Türker Han
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.13
Project-URL: Repository, https://github.com/daanvdn/HiTS-to-STTS-Mapping
Project-URL: Upstream, https://github.com/tuerkerhan/HiTS-to-STTS-Mapping
Description-Content-Type: text/markdown

# HiTS to STTS Tagset Conversion

> [!NOTE]
> This repository is a fork of
> [tuerkerhan/HiTS-to-STTS-Mapping](https://github.com/tuerkerhan/HiTS-to-STTS-Mapping).

Convert HiTS (Historical Tagset) part-of-speech tags to STTS
(Stuttgart-Tuebingen Tagset) tags. The project requires Python 3.13 or newer
and uses [uv](https://docs.astral.sh/uv/) for project and package management.

## Development

Clone the repository and create the locked development environment:

```bash
uv sync
```

Run the tests:

```bash
uv run python -m unittest discover -s tests
```

## Library usage

Install the project from a local checkout:

```bash
uv add --editable ../HiTS-to-STTS-Mapping
```

It can then be imported like any other dependency:

```python
from hits_to_stts import map_tag

mapped_tag = map_tag("ADJN.Masc.Nom.Sg")
assert mapped_tag == "ADJA.Nom.Sg.Masc"
```

To build installable source and wheel distributions:

```bash
uv build
```

The artifacts are written to `dist/`.

## CLI usage

The bundled HiTS tagset can be mapped and checked against the bundled STTS
tagset with:

```bash
uv run hits-to-stts
```

Unknown tags and mapped tags that are absent from the STTS tagset are printed.

## License

This project is licensed under the MIT License. See `LICENSE` for details.
