KIPA
Convert Kurdish text and words to IPA phonetics.
Why to use it?
- Convert texts to IPA with different alternatives
- Convert numbers to its corresponding Kurdish text
- It prioritizes the word's sound in the Kurdish Wiktionary (Wikiferheng) and return the generalized one if it doesn't exist.
Quick example:
from kipa import kipa
print(kipa.translate_text("Dema we ba艧 be! Ev k卯pa ye,
\n 没 ew 1ekem卯n mektebe ye
ji bo v锚 mijar锚!"))
| d蓻m蓱藧 w蓻 b蓱藧蕛 b蓻 |
蓻v ki藧p蓱藧 j蓻 |
u藧 蓻w j蓻k蓻k蓻mi藧n m蓻kt蓻b蓻 j蓻 蕭瑟 bo藧 ve藧 m瑟蕭蓱藧删e藧 |
Installation
pip install kipa
Usages:
- To get only the translated text (IPA phonetics text):
import kipa
ipa_text = kipa.translate_text('SOME_KURDISH_TEXT')
- To get an object of the result:
import kipa
ipa_text = kipa.get_ipa('SOME_KURDISH_TEXT')
- To convert a number to its Kurdish text:
import kipa
number_in_text = kipa.convert(382442)
number_ordinal = kipa.get_ordinal(32)
normal_fraction = kipa.get_fraction('4/5')
fraction_has_name = kipa.get_fraction('1/2')
numerator_bigger_than_denominator = kipa.get_fraction('45/12')
decimal_simple = kipa.get_decimal('34.675', False)
decimal_complex = kipa.get_decimal('34.675', False)
negative_fraction = kipa.get_fraction('-14/22')
negative_complex_decimal = kipa.get_decimal('-1.00067', True)
negaive_weird_decimal = kipa.get_decimal('-00000000000001.000000000000000067', True)
negative_weird_fraction = kipa.get_fraction('-0001/0003')
negative_fraction_with_decimals = kipa.get_fraction('-000.9999/0009.999')
s锚sed 没 he艧t锚 没 du hezar 没 莽arsed 没 莽il 没 du
s卯 没 duyem卯n
ji p锚ncan 莽ar
n卯v
莽il 没 p锚nc belav卯 dwanzdehan
s卯 没 莽ar n没qte 艧e艧sed 没 heft锚 没 p锚nc
s卯 没 莽ar 没 ji hezaran 艧e艧sed 没 heft锚 没 p锚nc
negat卯f ji b卯st 没 duan 莽ardeh
negat卯f yek 没 ji sed hezaran 艧锚st 没 heft
negat卯f yek n没qte sifir sifir sifir sifir sifir sifir sifir sifir sifir sifir sifir sifir sifir sifir sifir sifir 艧锚st 没 heft
negat卯f ji s锚yan yek
negat卯f ji neh n没qte nehsed 没 nod 没 nehan sifir n没qte neh hezar 没 nehsed 没 nod 没 ne
Note: Kipa automatically translates the numbers to its corresponding IPA phonetics too.