Skip to main content

Translate Amharic that written in english to Amharic characters

Project description

Fidel / ፊደል

What is Fidel / ፊደል ?

Fidel is a tool that can change Amharic language that written in English alphabet translater to pure Amharic alphabet characters

  • It will be Used for social medias specially on telegram

Dependencies

Installation

pip install fidel

Usage

Without Autocorrect

It takes < 1sec and If rules are applied it is more effective than autocorrect mode

from fidel import translate
text = "mukera"
trans_word = translate(text)
+Autocorrect

Delay upto 10 sec

from fidel import auto_correct_trans,translate
text = "mukera"
trans_word = translate(text)
corrected_word = auto_correct_trans(trans_word)

Rules

There are some rules that should applied when writing text to be translate

  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" - ሏ
  9. The above rules not works for "አ" and "ሀ" family in "አ" and "ሀ" 4th alphabets are removed because it have the same sound as 1th alphabet
  10. for "አ" and "ሀ" 1st alphabets uses " a "

More About Corrector

In amharic threre are too many words and I try to scrap some words from this web there are around 1 million words but as translator its not affortable it have long time delay symspellpy load 5000 words per second which means it delay 200 sec for 1M word so I scrap 20 pages to decrease the delay if you want increase accuracy word_list.txt is changable you can get word list from this web

Donate and feedback :)

contact : telegram

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fidel-0.0.3.tar.gz (18.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page