Skip to main content

wyrdcraeft

Process Old English texts into structured JSON and generate morphology.

Why wyrdcraeft?

If you work with Old English (Anglo-Saxon) texts - editions, corpora, translation tooling, or digital humanities projects - you often need a single pipeline that turns raw or marked-up sources into a consistent, machine-readable form. wyrdcraeft provides that.

  • It ingests plain text and TEI XML, converts them into a standard JSON schema that is prose, verse and dialogue aware
  • Provides diacritic restoration Old English texts that have no diacritic marks.
  • Includes an Old English morphology generator based on established lexical and grammatical resources.
  • Provides other minor utilities for working with Old English text.

Use it from the command line or from Python, and avoid ad-hoc scripts and format fragmentation.

Features

  • Ingest Old English texts from text files and TEI XML.
  • Convert to a standard JSON format via deterministic heuristics or TEI parsing.
  • Handle both prose and verse (paragraphs, verse lines, dialogue, sections).
  • Generate Old English morphology forms using the migrated Python implementation from Ondřej Tichý's Perl-based generator (based on the Bosworth & Toller, An Anglo-Saxon Dictionary, 1898, and Wright & Wright, Old English Grammar, 1908).
  • Diacritic workflows: macron restoration and disambiguation tooling for normalized forms.

Installation

Prerequisites: Python 3.11–3.13.

From PyPI with pip:

pip install wyrdcraeft
wyrdcraeft --help

With uv:

sh -c "$(curl -fsSL https://astral.sh/uv/install)"
uv tool install wyrdcraeft
wyrdcraeft --help

With pipx:

pipx install wyrdcraeft
wyrdcraeft --help

From source (development):

git clone https://github.com/cmalek/wyrdcraeft.git
cd wyrdcraeft
uv sync --dev

Canonical database

Morphology and dictionary data live in one SQLite file: wyrdcraeft.sqlite3 under the OS application-data directory (override with WYRDCRAEFT_APP_DATA_DIR or app_data_dir in .wyrdcraeft.toml).

On first run (or after a schema upgrade), wyrdcraeft checks the database, applies Alembic migrations, and keeps a backup copy. If an older morphology.sqlite3 is found, it is backed up and replaced with a fresh canonical database; the CLI then prints a rebuild recipe.

Rebuild from scratch:

wyrdcraeft dictionary build --with-morphology

Use --source PATH to index a custom Bosworth-Toller file instead of the packaged default (wyrdcraeft/etc/dictionary/oe_bt.txt).

Documentation

Full documentation (installation, quickstart, CLI, Python client, configuration, FAQ): https://wyrdcraeft.readthedocs.io

For wyrdcraeft dictionary browse, the search field accepts direct Old English characters including æ Æ ð Ð þ Þ ā Ā ē Ē ī Ī ō Ō ū Ū ȳ Ȳ ǣ Ǣ ċ Ċ ġ Ġ. On macOS with the ABC Extended keyboard layout, those keys are supported directly in the browse input; on other terminals or keyboard layouts, direct typing may also work, and the on-screen character buttons remain available as a fallback.

Contributing, Licensing and Provenance

Contributing

Contributing and coding standards are described in the documentation (runbook).

Licensing and Provenance

Bosworth-Toller Old English Dictionary

The OCR extracted text of the Bosworth-Toller Old English Dictionary used in this project is from the Germanic Lexicon Project. The scanning was done by Jason Burton, B. Dan Fairchild, Margaret Hoyt, Grace Mrowicki, Michael O'Keefe, Sarah Hartman, Finlay Logan, Sean Crist, Thomas McFadden, David Harrison, and Sean Crist; that data is in the public domain.

Morphological Analyser of Old English

  • The Old English morphology generator in wyrdcraeft is based on the work of Ondřej Tichý's thesis, Morphological Analyser of Old English (2017).
  • The upstream morphological generator Perl code and data is (c) Ondřej Tichý, is released under the CC BY 4.0 license. The modified Perl code itself, with Madeleine Thompson's changes, can be found at github:madeleineth/tichy_oe_generator.
  • Changes made to the morphology generator in this repository by the maintainers of wyrdcraeft are released under the MIT license.

All other code

  • All other code implemented directly by this project's maintainers are also released under the MIT license.

Metadata

Release files for wyrdcraeft 1.3.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 wyrdcraeft 1.3.0
File Size Uploaded Provenance Actions
wyrdcraeft-1.3.0.tar.gz 11.4 MB Without provenance Details for wyrdcraeft-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wyrdcraeft 1.3.0
File Interpreter ABI Platform Actions
wyrdcraeft-1.3.0-py3-none-any.whl Python 3 none any Details for wyrdcraeft-1.3.0-py3-none-any.whl

Total release size: 23.6 MB

Release files / wyrdcraeft-1.3.0.tar.gz

Download URL wyrdcraeft-1.3.0.tar.gz
Size 11.4 MB
Tags Source
SHA-256 checksum
How to use checksums
1d0c9120e1bff3bc6d949844b0b05ea1462388c1051dd4668ddaa0984c2e354d
BLAKE2b-256 checksum
How to use checksums
0208383a2a6597fd99018bbe0f8bb450235ee1cdbb63c8529ca1d76f5a5b1229
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Release files / wyrdcraeft-1.3.0-py3-none-any.whl

Download URL wyrdcraeft-1.3.0-py3-none-any.whl
Size 12.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f23e37c0f091a85d78cd4dc13de8ebed653ca516deff37637954e8a258fb8be6
BLAKE2b-256 checksum
How to use checksums
c20887fa471e857cb7a0b5c8a4672066b526cc0332f07d7249852eff4d76a58d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.10

Security for wyrdcraeft 1.3.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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