Hinglish + social text normalization (emoji→text, diacritics removal, hashtag splitting)
Project description
swaach-text
A small, dependency-light toolkit for Hinglish + social text cleaning:
- Emoji → text tags (e.g.,
😂 → [laughing]) - Accent/diacritics removal (
café → cafe) - Hashtag splitter (
#ThisIsGreat → This Is Great) - Hinglish shorthand expansion + filler removal
- Optional PII redaction
Install
pip install swaach-text
Quick use
from swaach_text import normalize, Cleaner
print(normalize("Plz yaar tmrw call me 😂 at café #ThisIsGreat!!!"))
# -> "please tomorrow call me [laughing] at cafe This Is Great!"
CLI
swaach-text "Plz tmrw call me 😂 at café #ThisIsGreat"
# please tomorrow call me [laughing] at cafe This Is Great
Notes
- This is a starter library; extend
rules.pywith more shorthand/emoji. - For issues/PRs, please include examples + tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swaach_text-0.1.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swaach_text-0.1.0.tar.gz.
File metadata
- Download URL: swaach_text-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab44f9256efcf10f0248c3fbb2a3e8e7c8138b239533b2ee33b890c8d175c93d
|
|
| MD5 |
89fdf26869268236f4641c3d4c1fb4c0
|
|
| BLAKE2b-256 |
e5da44c6cfa4213568fcf0160881870f299197fbf02fb21b7c34567199e730b5
|
File details
Details for the file swaach_text-0.1.0-py3-none-any.whl.
File metadata
- Download URL: swaach_text-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c1e9cfe22bb99589a072fd1a5df3853a1478ac421512c89d6e253e29a52b0ab
|
|
| MD5 |
c42f07384fad027e40a40c9b54e692cc
|
|
| BLAKE2b-256 |
6b075b843a5a3722cd39abf0e0a5431684d8f33f657bc89256a9d783ab5a24f7
|