A PyPi package to convert Nepali words to Romanized English Literals. Here we perform translieration and convert Devanagari words into Roman Literals. Nepali to Roman
Project description
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 numbers. 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 literals 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 ntr
module using the following command.
import ntr
The ntr
module has one function: nep_to_rom
Detail description: Every words of a sentences are broken down into list and are transliterated individually which are later merged into single string.
Syntax:
>>> ntr.nep_to_rom(text)
Example:
>>> import ntr
>>> print(ntr.nep_to_rom("म नेपाल मा बस्छु ।"))
Output: ma nepal ma baschhu .
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
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
File details
Details for the file nepali-to-roman-1.0.0.tar.gz
.
File metadata
- Download URL: nepali-to-roman-1.0.0.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b55a9e8cec19c1b51f97c777d1c2107a7185c021d4c96fa8d5ffb433de07bb0 |
|
MD5 | ebbce2e7069328ac041d22a6c816fb33 |
|
BLAKE2b-256 | 9a71c3fa628d8279beb296bd701966964bc2741003b0c43041a7e186bb11a7dc |