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.

License

MIT.

Metadata

Release files for lexitrace 0.1.1

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

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / lexitrace-0.1.1.tar.gz

Download URL lexitrace-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
509ecf4149c859a4cca760451dd80adfcf86deb4c919ebb53fb4acc2ca5f9c52
BLAKE2b-256 checksum
How to use checksums
b44df4c5f643f141149131664fa0ed6f6ab06fd8bedc77eb00f2337c3ffc24c5
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.1-py3-none-any.whl

Download URL lexitrace-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21787bfaff1f627e59d384db1ded25598e5635e63d426c06c64aa6930c946512
BLAKE2b-256 checksum
How to use checksums
d5b4f47bd3b6c723f57141412bafc97b358e1da4c8eb30fb946c0ba62af6f912
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.1

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.1 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