Skip to main content

Converts Nepali words into Roman English Literals

Project description

nepali-to-roman

Package to convert Nepali text to romanized English.

While working with many Nepali documents, we encountered lots of data of Nepali names which includes names, surname, address and number Extracting the data was not a easy task but working with its romanize transliteration was hard.

Many different packages are created for transliteration but they were not quite accurate.

This package contains large amount of Nepali litral and words which are mapped to its respective romanized literal and word.

But that was not the challenging part, still it was not giving the accurate result for instance "नेपाल" was showing Nepala as the "ल" is mapped as "la". So we have worked with these type of issues also.

Installation

nepali-to-roman package is available for Python 3 and can be installed using pip.

First make sure pip is installed.

Then, the package can be installed using this command.

pip install nepali-to-roman

Usage

Import the nep_to_rom module using the following command.

import nep_to_rom as nr

The nep_to_rom module has one function: nep_to_roman

Detail description: In text, it does not work with paragraphs as it combines it. Beside, that it work with every character.

Syntax:

>>> nr.nep_to_roman(text)

Example:

>>> import nep_to_rom as nr
>>> print(nr.nep_to_roman("काठमाडौँ"))
Output: Kathmandu

Contributions

The package is licenced with The MIT License (MIT) about which details can be found in the LICENSE file. As the package is open sourced and requires many improvements and extensions, any contributions are welcome. Any other feedback of any sort are highly welcome.

About Contributors

'Diwas Pandey'
'Ishparsh Uprety

Nepali-to-Roman-Transliteration

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-to-roman-0.1.4.tar.gz (27.8 kB view details)

Uploaded Source

File details

Details for the file nepali-to-roman-0.1.4.tar.gz.

File metadata

  • Download URL: nepali-to-roman-0.1.4.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11

File hashes

Hashes for nepali-to-roman-0.1.4.tar.gz
Algorithm Hash digest
SHA256 99b4100a823fb271d8dbd3e83f14229921345411e5873c085f72f8ffcee552d8
MD5 ac5950937b31fe90b28b7109bdd573f5
BLAKE2b-256 de177616484a5ad3c2ba51daf46e065359df4173e8f1645e6a2505261793365e

See more details on using hashes here.

Supported by

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