Skip to main content

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:

  1. Convert English/Roman Nepali names to Devanagari
    Example: "Ram Bahadur Shrestha" → "राम बहादुर श्रेष्ठ"

  2. Convert addresses with common Nepali place names
    Example: "Kathmandu Municipality" → "काठमाडौं नगरपालिका"

  3. Convert English numbers to Nepali numbers
    Example: "Ward 5" → "वडा ५"

  4. 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:

  1. Get the package structure working
  2. Test PyPI publishing process
  3. Have a base to build upon
  4. Get feedback from actual use

Next Steps (Your Suggestions Needed)

I plan to improve this by:

  1. Adding your JSON data - to make it actually useful
  2. Improving accuracy - better rules and patterns
  3. Adding reverse conversion - Nepali to Roman
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nepali_citizen_transliterator-1.0.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nepali_citizen_transliterator-1.0.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file nepali_citizen_transliterator-1.0.2.tar.gz.

File metadata

File hashes

Hashes for nepali_citizen_transliterator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0e7705d1321b1abf1af2b6ea8d1c455d33aa0028d694b475debed6537346f98c
MD5 66f245238b4186d4f37f313b84eaf92c
BLAKE2b-256 7559cb99a90d4f3a782643a9ff82552dcea1f518e7faf88286beb607ffc6d991

See more details on using hashes here.

File details

Details for the file nepali_citizen_transliterator-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nepali_citizen_transliterator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93bbf2a0eb88d1a84bf1ef47b522f386e3713321e73ed88c41abd24a3956d054
MD5 a79e0477a2a242b1a1e8d767edec6af3
BLAKE2b-256 3544343f72d1e446963d8e725687bbd899e056a193e4a413d4337355790e6aa1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page