Git Product home page Git Product logo

fidel's Introduction

Fidel / ፊደል

What is Fidel / ፊደል ?

Fidel is a python package that can change Amharic language that written in English alphabet to Amharic alphabet character.
| For example: abebe beso bela -> አበበ በሶ በላ

Dependencies

Installation

pip install fidel

Usage

Without Autocorrect

from fidel import Translate
text = "bexam xru sew new"
trans_word = Translate(text=text,AutoCorrect=False).translate()
print(trans_word)

output

በጣም ጥሩ ሰው ነው

Autocorrect Mode

from fidel import Translate
text = "betam tiru sew nw"
trans_word = Translate(text=text,AutoCorrect=False).translate()
corrected_word = Translate(text=text,AutoCorrect=True).translate()
print(f"translated : {trans_word}")
print(f"corrected_word : {corrected_word}")

output

translated : በታም ቲሩ ሰው ንው
corrected_word : በጣም ጥሩ ሰው ነው

Rules

There are some rules that should be apply when writing the text

  1. For 1st alphabets (ለግዕዝ) use "e" example: "le" - ለ
  2. For 2nd alphabets (ለካእብ) use "u" example: "lu" - ሉ
  3. For 3rd alphabets (ለሳልስ) use "i" example: "li" - ሊ
  4. For 4rh alphabets (ለራዕብ) use "a" example: "la" - ላ
  5. For 5th alphabets (ለሀምስ) use "ie" example: "lie" - ሌ
  6. For 6th alphabets (ለሳድስ) use only vowel example: "l" - ል
  7. For 7th alphabets (ለሳብዕ) use "o" example: "lo" - ሎ
  8. For 8th alphabets(ለዲቃላ ቃላት) use "ua" example: "ua" - ሏ

Note The above rules may violate for some alphabets family check out ambiguous alphabets.

Ambiguous alphabets

ግዕዝ ካእብ ሳልስ ራዕብ ሀምስ ሳድስ ሳብዕ
ha hu hi ha hie h ho
a u i a ie e o
te tu ti ta tie t to
xe xu xi xa xie x xo
che chu chi cha chie ch cho
ce cu ci ca cie c co
phe phu phi pha phie ph pho
pe pu pi pa pie p po

Addition

Alphabets
Prefix sh gn zh ts

Donate and feedback

contact me : image Telegram
       image Instagram

fidel's People

Contributors

nypava avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.