Convert Romanized Nepali names/addresses to Devanagari script
Project description
Nepali Citizen Transliterator
A Python library for converting Romanized Nepali names and addresses to Devanagari script. Made specifically for processing Nepali citizen data like names, addresses, and document information.
What This Package Actually Does
This is version 1.0 - a basic starting point. It can:
-
Convert English/Roman Nepali names to Devanagari
Example: "Ram Bahadur Shrestha" → "राम बहादुर श्रेष्ठ" -
Convert addresses with common Nepali place names
Example: "Kathmandu Municipality" → "काठमाडौं नगरपालिका" -
Convert English numbers to Nepali numbers
Example: "Ward 5" → "वडा ५" -
Process complete citizen data dictionaries
Takes data like{"name": "Hari Sharma", "address": "..."}and converts all fields
What's NOT Included (Yet)
- No reverse conversion (Nepali to Roman) - only one-way
- No complex rules - simple character mapping only
- No your JSON data - uses only basic built-in dictionary
- No advanced features - kept minimal for first version
Installation
pip install nepali-citizen-transliterator
Basic Usage
from nepali_citizen_transliterator import CitizenTransliterator
# Initialize
trans = CitizenTransliterator()
# Convert a name
nepali_name = trans.transliterate_name("Sita Kumari Rai")
print(nepali_name) # सीता कुमारी राई
# Convert an address
address = trans.transliterate_address("Ward 9, Pokhara")
print(address) # वडा ९, पोखरा
# Process citizen data
data = {
"name": "Gopal Sharma",
"district": "Kathmandu",
"citizenship_no": "05-12345"
}
result = trans.transliterate_citizen_data(data)
# {'name': 'गोपाल शर्मा', 'district': 'काठमाडौं', 'citizenship_no': '०५-१२३४५'}
What's Really in the Box
This package has:
- Basic character mappings (a→अ, k→क, etc.)
- ~50 common Nepali names (Ram, Shyam, Sita, Gopal, etc.)
- ~30 common place names (Kathmandu, Pokhara, districts)
- Address terms (Ward, Municipality, Tole, etc.)
- Number conversion (0-9 to ०-९)
This is a Starting Point
I'm publishing this as version 1 to:
- Get the package structure working
- Test PyPI publishing process
- Have a base to build upon
- Get feedback from actual use
Next Steps (Your Suggestions Needed)
I plan to improve this by:
- Adding your JSON data - to make it actually useful
- Improving accuracy - better rules and patterns
- Adding reverse conversion - Nepali to Roman
- More validation - better data checking
Help Me Make It Better
Since this is my first package, I'd appreciate:
- What features do you actually need?
- What data should I prioritize adding?
- How should I handle edge cases?
- Any bugs or issues you find?
Simple Enough?
This package is intentionally minimal. Install it, try it, and tell me what's missing or what should change.
Note: This is version 1.0 - basic functionality to start with. Expect improvements based on real usage.
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
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 nepali_citizen_transliterator-1.0.0.tar.gz.
File metadata
- Download URL: nepali_citizen_transliterator-1.0.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
577af39ed57339181f850f335fd0dbc22430bbfcff7ef8db07532e79ae15d0e6
|
|
| MD5 |
527fbaddb57cc9265aa407a0cbf6357b
|
|
| BLAKE2b-256 |
a06a635a64dcc3190fed7218999b8cebdb4561b607118837e8595ed22db1c407
|
File details
Details for the file nepali_citizen_transliterator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nepali_citizen_transliterator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
438d8bc0bb2a96e070ed18be1efa3a2f92c9c001d29d58604c9908a44a69678d
|
|
| MD5 |
5cd0e28496dad3505d0e816cd3a29442
|
|
| BLAKE2b-256 |
7593aae249765ba3defe4367fd2f1fa7f213f98f4e6fad99bcff9f68f4d40719
|