Skip to main content

🏔️ Garhwali (गढ़वाली) Language Library

A comprehensive Python library, NLP toolkit, and cultural heritage engine for the Garhwali Language (गढ़वाली भाषा) — spoken by over 3 million people across Uttarakhand's Garhwal Himalayas (Pauri, Chamoli, Tehri, Uttarkashi, Rudraprayag, Dehradun, and Haridwar).


🌟 Key Features

  1. 📚 300,000+ Inflected Word Forms:
    • High-performance morphological engine covering noun declensions, pronoun cases, verb tenses/aspects, and postpositional compounds.
  2. 🔄 Multi-Strategy Translator:
    • Fast, accurate translation across English $\leftrightarrow$ Garhwali, Hindi $\leftrightarrow$ Garhwali, and Hinglish $\leftrightarrow$ Garhwali.
  3. 🏔️ Dialect Support:
    • Srinagariya (Standard Pauri Garhwal)
    • Rathwali / Tehri (Tehri Garhwal)
    • Salani (Southern Pauri / Kotdwar)
    • Badhani (Chamoli / Alaknanda Valley)
  4. 🗣️ Phonetics & Syllable Engine:
    • Native syllabification, Devanagari $\leftrightarrow$ Romanized phonetic transliteration.
  5. 📜 Himalayan Lore & Culture:
    • Proverbs (अखाण / पखाण), Interactive Riddles (आणा), 12 Garhwali Months & 6 Ritus, Festivals (Phooldei, Igas Bagwal, Nanda Devi Raj Jat), and classic folk literature (Chaita ki Chaitwali, Bedu Pako).
  6. 🔢 Garhwali Numbers:
    • Converts any integer into Garhwali words, ordinals, and Devanagari numerals.
  7. 🎙️ Voice Synthesis SSML & Audio:
    • Himalayan pitch envelope generator, SSML formatter, and uncompressed PCM WAV synthesis.

🚀 Installation & Usage

pip install garhwali

Quick Python Example

import garhwali

# 1. Translate English or Hinglish to Garhwali
res = garhwali.translate("Where is mom?")
print(res.text)  # "ईजा कहाँ छ?"

res_hinglish = garhwali.translate("are yah chal kyon nahin raha hai")
print(res_hinglish.text)  # "अरे यो किलै नि चलनो छ?"

# 2. Dialect variations
print(garhwali.translate("What is your name?", dialect="rathwali").text)  # "तमरो नाव क्या छ?"
print(garhwali.translate("What is your name?", dialect="salani").text)    # "तुमारू नाव क्या छ?"

# 3. Numbers to Garhwali words
print(garhwali.num_to_words(2026))  # "दुई हजार छब्बीस"
print(garhwali.to_devanagari_numerals(2026))  # "२०२६"

# 4. Phonetics & Syllables
print(garhwali.syllables("गढ़वाली"))  # ['गढ़', 'वा', 'ली']
print(garhwali.devanagari_to_latin("ईजा कहाँ छ?"))  # "Ija kahaan chha?"

# 5. Culture & Calendar
print(garhwali.get_current_season())  # {'name_garhwali': 'सरद', 'english': 'Autumn'}
print(garhwali.proverbs.all()[0]["garhwali"])  # "अपणी घाम मा कुकुर भी राजा।"

🧪 Testing

python -m unittest discover tests

📄 License

MIT License. Open-source for the preservation and advancement of Himalayan languages.

Metadata

Release files for garhwali 1.0.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 garhwali 1.0.0
File Size Uploaded
garhwali-1.0.0.tar.gz 38.2 kB Details

Built distribution (wheel)

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

Total release size: 83.7 kB

Release files / garhwali-1.0.0.tar.gz

Download URL garhwali-1.0.0.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7085be791c09cf6357b6da649f22c42422b1929f92263692dabcf9fa237bd5cd
BLAKE2b-256 checksum
How to use checksums
fe8c90a9e760e8703c05121506e7898171d6d557c1d3d0f5e53a49c9c4ed2673
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Sep 20, 2026.

Transparency log

Release files / garhwali-1.0.0-py3-none-any.whl

Download URL garhwali-1.0.0-py3-none-any.whl
Size 45.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cc5c48ca28703de4816556196d160a9be364ccbd39d38bf16fc2258869acede
BLAKE2b-256 checksum
How to use checksums
be6d5fb7d0525c373edb0c57139116162c97fada27ca3e7e7d7c3a2e839cb89a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

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