semvec/pypi-packages huggingface dataset:
nepali-roman 1.1
Convert Nepali text to roman English

# nepali-roman
## Package to convert Nepali text to romanized English.

Many a time, while working with data, either from government sector or from private sector, we encounter Nepali names of
VDCs, municipalities, local level units, districts and places. While merging such data with another datasheet consisting
names of units in English, we need to romanize the Nepali names to English before using some text similarity algorithms 
to do string matching.

This package helps in romanizing Nepali names using rudimentary script. It is worth mentioning that romanization of 
Nepali text used in our daily life is inconsistent. For example, the popular romanization of "नेपाल" is "Nepal". It might
seem as the correct romanization but if we have to distinguish between "नेपाल" and "नेपल", we can't do that with this
romanization scheme. So, this package uses unique and standard romanization scheme such that no two Nepali words have
same romanization.

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

First make sure [`pip`](https://pip.pypa.io/en/stable/installing/) is installed.

Then, the package can be installed using this command.
```
pip install nepali-roman
```

## Usage

Import the `nepali_roman` module using the following command.
```python
import nepali_roman as nr
```
The `nepali_roman` module has three functions: `is_devanagari`, `romanize_text` and `romanize`.

### `is_devanagari`
This function checks if the text is in Devanagari format.

**Detail description**:
In the text, it ignores all the punctuations, white spaces and other non-alphanumeric characters and then counts the
number of devanagari characters. If the number of devanagari characters is more than or equal to 50% of the stripped
text, the function deems the text devanagari, otherwise not.

Syntax:
```python
>>> nr.is_devanagari(text)
```

Example:
```python
>>> import nepali_roman as nr
>>> nr.is_devanagari("नगरपालिका")
    True

>>> nr.is_devanagari("surajपालिक")
    False

>>> nr.is_devanagari("suraj")
    False
```
    
    

### `romanize_text`
This function can be used to romanize the Nepali text to English.

Syntax:
```python
>>> nr.romanize_text(nepali_text)
```
Example:
```python
>>> import nepali_roman as nr
>>> nr.romanize_text("नगरपालिका")
    nagarapaalikaa
```

### `romanize`
This function takes Nepali text file as an input and saves the romanized text in specified output file.

Syntax:
```python
>>> nr.romanize(input_file_path, output_file_path)
```

Example:
```python
>>> import nepali_roman as nr
>>> nr.romanize('nepali.txt', 'romanized_english.txt')
# this takes Nepali text file nepali.txt and stores romanized English in the file romanized_english.txt
```

## Contributions

The package is licenced with The MIT License (MIT) about which details can be found in the [LICENSE](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.
t4KL 10.38
Traductor web
Keywords: traductor

TraductorPy
===========

Esta librería te ayudara a traducir el texto que necesites utilizar.

Demo
----

Si desea ver más sobre el proyecto puede visitar `este
Link. <https://camilocastellanos.github.io/PyLangWeb/>`__

Instalación
-----------

Para instalar y ejecutar este proyecto, simplemente escriba y ejecute

.. code:: py

       pip install traductorPy

| |TraductorPY Example| ### Dependencias
| - Python 3 - selenium ### Preview

.. figure:: https://i.postimg.cc/CL6KPrRg/Ejecucion.gif
   :alt: TraductorPY Example

   TraductorPY Example

Uso
^^^

.. code:: py

   from traductorPy import Traductor

.. code:: py

   translate = 'Hola mundo !'
   lan_source = 'ES'
   lan_to = 'PT'
   print(Traductor.translater(translate, lan_source, lan_to))

..

   Olá mundo!

.. code:: py

   print(Traductor.translater(translate))

..

   Hello world !

Propiedades de translater
^^^^^^^^^^^^^^^^^^^^^^^^^

+------------+--------+------------------+-------------------------+-------------------+
| Propiedad  | Tipo   | Descripción      | Uso                     | Valor por Defecto |
+============+========+==================+=========================+===================+
| lan_source | string | Idioma           | lan_source =“DE”        | EN                |
+------------+--------+------------------+-------------------------+-------------------+
| lan_to     | string | Idioma           | lan_to =“DE”            | ES                |
+------------+--------+------------------+-------------------------+-------------------+
| translate  | string | Texto a traducir | translate =“Hola MundO” | ’’                |
+------------+--------+------------------+-------------------------+-------------------+

Idiomas Disponibles
===================

========== ======
Idioma     Valor
========== ======
Alemán     **DE**
Búlgaro    **BG**
Checo      **CS**
Chino      **ZH**
Danés      **DA**
Eslovaco   **SK**
Esloveno   **SL**
Español    **ES**
Estonio    **ET**
Finés      **FI**
Francés    **FR**
Griego     **EL**
Húngaro    **HU**
Inglés     **EN**
Italiano   **IT**
Japonés    **JA**
Letón      **LV**
lituano    **LT**
neerlandés **NL**
polaco     **PL**
portugués  **PT**
rumano     **RO**
ruso       **RU**
sueco      **SV**
========== ======

.. |TraductorPY Example| image:: https://i.postimg.cc/wx2MJjH3/Instalacion.gif