#avro #bengali #convert-text #bangla #avro-phonetic

rupantor

A Bengali Phonetic Parser which is very flexible and supports Avro Phonetic

3 releases (breaking)

0.3.0 Sep 22, 2020
0.2.0 Oct 6, 2018
0.1.0 Jun 6, 2018

#917 in Text processing

Download history 1/week @ 2024-02-05 5/week @ 2024-02-12 14/week @ 2024-02-19 32/week @ 2024-02-26 4/week @ 2024-03-04 6/week @ 2024-03-11

57 downloads per month
Used in okkhor

MPL-2.0 license

39KB
649 lines

rupantor-rs

Build Status Rust crates.io DOCS.rs

A Bengali Phonetic Parser which is very flexible and converts text into Bengali according to a json formatted grammar.

rupantor supports Avro Phonetic out of the box, which is a very popular phonetic based transliteration method for writing Bengali. rupantor is very flexible as it is possible to control the conversion by specifying the grammar/conversion rules. So it is possible by the user to create a phonetic method by specifying a custom grammar.

Usage

Add this to your Cargo.toml:

[dependencies]
rupantor = "0.3"

Example

This example shows how to use Avro Phonetic:

use rupantor::avro::AvroPhonetic;

let avro = AvroPhonetic::new();
let bengali = avro.convert("ami banglay gan gai");
assert_eq!(bengali, "আমি বাংলায় গান গাই");

License

rupantor is distributed under the terms of MPL License (Version 2.0).

See LICENSE for details.

Dependencies

~360–760KB
~17K SLoC