Skip to main content

biz.dfch.AsdSte100Nlp

ASD-STE100: Issue 9 License: AGPL v3 Python Pylint and unittest TestPyPI version PyPI version PyPI downloads

Introduction

This is a Python library that implements natural language processing helpers for ASD-STE100 Issue 9 (Simplified Technical English) tooling. The Nlp class is a plain domain object, reusable directly or as the backend for other tools; a typer-based CLI (nlp) is also included for interactive/scripted use.

The Nlp class is constructed from a biz-dfch-asdste100vocab Vocab instance and currently offers synonym(value), a WordNet-based (nltk) thesaurus lookup cross-referenced against the vocabulary. The WordNet 3.0 corpus is vendored as static package data, so lookups work fully offline -- nltk.download() is never called at runtime.

CLI usage

Install the dev dependencies (see below), then run the synonym command:

uv run nlp synonym quick

By default, the built-in STE100 vocabulary is searched. Add your own JSONL vocabulary file(s) with --file (repeatable), and toggle the built-in vocabulary/technical words with --ste100/--no-ste100 and --technical/--no-technical:

uv run nlp synonym quick --no-ste100 --file ./vocab.jsonl

Use --help on the application or any sub-command for the full option list, and --env to load a specific .env file.

Related projects in this family:

Installation

biz-dfch-asdste100nlp is on PyPI. Create a virtual environment and install the library with pip:

pip install biz-dfch-asdste100nlp

Or install with uv:

uv add biz-dfch-asdste100nlp

Development

Install the dev dependencies:

uv sync --extra dev
# or
uv pip install -e ".[dev]"
# or
pip install -e ".[dev]"

Run the checks:

uv run --frozen ruff format --check
uv run --frozen ruff check
uv run --frozen pylint $(git ls-files '*.py') || true
uv run --frozen python -m unittest discover -v -s tests -t . -p "test_*.py"

See CONTRIBUTING.md for more information.

Make a Release

1. Make sure that all tests are satisfactory

Before you make the release, make sure the CI pipeline is green on the dev branch:

uv run --frozen ruff format --check
uv run --frozen ruff check
uv run --frozen pylint $(git ls-files '*.py') || true
uv run --frozen python -m unittest discover -v -s tests -t . -p "test_*.py"

2. Increase the version

Update the version in pyproject.toml:

version = "x.y.z"

3. Commit and push to dev

git add pyproject.toml
git commit -m "chore: bump version to vx.y.z"
git push origin dev

4. Merge dev into main

git checkout main
git merge dev
git push origin main

5. Create and push a version tag

This will create a binary artifact of the application and add it to the release.

export VERSION=x.y.z
git tag v${VERSION}
git push origin v${VERSION}

Then, select the dev branch to continue your work.

git checkout dev

Pushing the tag automatically triggers the publish.yml workflow, which will:

  • build the sdist and wheel with uv build (this step creates the artifact)
  • create a GitHub Release with auto-generated release notes
  • upload the files as a release artifact (this step adds the artifact to the release)

License

This library is licensed under the GNU Affero General Public License. See LICENSE for more information.

ASD-STE100 Simplified Technical English (Standard for Technical Documentation), Issue 9

Copyright 2025 Aerospace, Security and Defence Industries Association of Europe (ASD), https://www.asd-europe.org.

This library or the maintainer is not affiliated with ASD. ASD does not endorse this library or the maintainer.

Release files for biz-dfch-asdste100nlp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biz-dfch-asdste100nlp 0.1.0
File Size Uploaded
biz_dfch_asdste100nlp-0.1.0.tar.gz 10.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for biz-dfch-asdste100nlp 0.1.0
File Interpreter ABI Platform
biz_dfch_asdste100nlp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 MB

Release files / biz_dfch_asdste100nlp-0.1.0.tar.gz

Download URL biz_dfch_asdste100nlp-0.1.0.tar.gz
Size 10.7 MB
Tags Source
SHA-256 checksum
How to use checksums
1fb0f1fb31a7954503c0a0912574a2b8f357b9408dd9bb389dc6060ff7ff99b9
BLAKE2b-256 checksum
How to use checksums
92f56cc57d56c8e6aa86a1b8d65d0529e62afc45a0e0305654f3791ce40eecc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release files / biz_dfch_asdste100nlp-0.1.0-py3-none-any.whl

Download URL biz_dfch_asdste100nlp-0.1.0-py3-none-any.whl
Size 10.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dc214f694833d593aeb27f68a78b74f49c536a0d0970bcace9a1d98db1e05256
BLAKE2b-256 checksum
How to use checksums
840c7196d4c99277d2f7ceb1ecfdb1371819770eef7fc73837bb08ee5a224637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page