Skip to content

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 lar…

License

Notifications You must be signed in to change notification settings

Diwas524/Nepali-to-Roman-Transliteration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package to convert Nepali text to romanized English.

Downloads

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

'Diwas Pandey'
'Ishparsh Uprety

About

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 lar…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages