Skip to main content
# Bengali Phonetic Parser

This package will help you to convert Bengali text to Banglish as well as Banglish to Bengali


## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development, testing purposes and as well as in production machine. See deployment for notes on how to deploy the project on a live system.


### Python Version
Minimum python version should have 3.x.x or upper

### Installing

A step by step series of examples that tell you have to get a development env running

Say what the step will be

```
$[sudo] pip install bnbphoneticparser
```

OR, git clone

```
$ git clone https://github.com/porimol/bnbphoneticparser.git

$ cd bnbphoneticparser
$ python setup.py install
```

### Example

#### Bengali to Banglish Example
```python
# coding=utf-8
from BengaliPhoneticParser import BengaliToBanglish


bengali2banglish = BengaliToBanglish()
bengali_text = "আমি বাংলাদেশি"
print(bengali2banglish.parse(bengali_text.strip()))
```

#### Bengali to Banglish Output
```
aMi bangLadESi
```

#### Banglish to Bengali Example
```python
# coding=utf-8
from BengaliPhoneticParser import BanglishToBengali


banglish2bengali = BanglishToBengali()
banglish_text = "ami banglay gan gai"
print(banglish2bengali.parse(banglish_text.strip()))
```

#### Banglish to Bengali Output
```
আমি বাংলায় গান গাই
```

## Running the tests

Test Banglish to Bengali

```python
pytest tests/testbenglishtobanglish.py
```

Test Bengali to Banglish

```python
pytest tests/testbanglishtobengali.py
```

## Authors

* **[Porimol Chandro](https://github.com/porimol)**

See also the list of [contributors](https://github.com/porimol/BengaliPhoneticParser/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details


Credit
---------

[Bangla Phonetic Parser Python](https://github.com/ShuvenduBikash/Bangla_phonetic_parser_Python) open source project.

[Author :- Shuvendu Bikash](https://github.com/ShuvenduBikash)

Metadata

Release files for bnbphoneticparser 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bnbphoneticparser 0.1.5
File Size Uploaded
bnbphoneticparser-0.1.5.tar.gz 7.4 kB Details

Release files / bnbphoneticparser-0.1.5.tar.gz

Download URL bnbphoneticparser-0.1.5.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
44a245cced68ea19a3e910215067c166a3bb7a40db40a7927e791ac88bd78968
BLAKE2b-256 checksum
How to use checksums
89d8110c539c110e119589e47e6e88022b0e109fb5a8e68359932d811a182575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page