Skip to main content

lexitrace

Turkish-aware text helpers of the LexiTrace project: casing with dotted and dotless i, circumflex folding, apostrophe normalising and search keys.

Plain lower-casing is wrong for Turkish. I is the capital of ı, and İ is the capital of i, so ISPARTA shall become ısparta, not isparta. Older texts also write â, î and û, and they print the apostrophe in six shapes. These helpers apply the rules that the LexiTrace project uses when it counts and searches words.

Install

pip install lexitrace

Use

from lexitrace import tr_lower, tr_upper, fold_circumflex, normalize_apostrophes, search_key

tr_lower("ISPARTA İZMİR")            # "ısparta izmir"
tr_upper("ırmak izmir")              # "IRMAK İZMİR"
fold_circumflex("hükûmet kâtip")     # "hükumet katip"
normalize_apostrophes("Hatay’ın")    # "Hatay'ın"
search_key("  MİLLÎ   Eğitim’in ")   # "milli eğitimin"

No dependencies. Python 3.9 or newer.

About

LexiTrace is a study of word replacement in Turkish parliamentary records from 1928 to 2024, by Batuhan Duras. This package holds its text helpers. More of the project may follow under this name.

Written with the help of Claude Code (Anthropic).

License

MIT.

Metadata

Release files for lexitrace 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 lexitrace 0.1.0
File Size Uploaded Provenance Actions
lexitrace-0.1.0.tar.gz 3.1 kB Without provenance Details for lexitrace-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / lexitrace-0.1.0.tar.gz

Download URL lexitrace-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4ff30290ed964398047ad523651dbf041e8bc6d620a616dabf7d9701356c1ded
BLAKE2b-256 checksum
How to use checksums
13ca4852a54469bf42452be31246f1b3dfcb0cc983d483edf89502ecab6ae0a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL lexitrace-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b107ddab00dea68ba970e0d94c3fe20551602509b8f3ba236da02e67650adf86
BLAKE2b-256 checksum
How to use checksums
0cfb23063d89954ee53ba191098df0f86f49c349e91417db6cfe453429778908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for lexitrace 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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