Package libqutrub :: Package src :: Module ar_verb
[hide private]
[frames] | no frames]

Module ar_verb

source code

Basic routines to treat verbs ar_verb

Functions [hide private]
    verb attributes conversion functions
tuple;
get_bab_sarf_harakat(number)
Get the the past and future marks by the bab sarf number
source code
integer;
get_bab_sarf_number(past_haraka, future_haraka)
Get the bab sarf number by the past and future marks
source code
unicode;
write_harakat_in_full(harakat)
Write the harakat name in full in arabic
source code
unicode;
get_past_harakat_by_babsarf(vtype)
Get the past harakat for the trileteral verb by bab sarf
source code
unicode;
get_future_harakat_by_babsarf(vtype)
Get the future harakat for the trileteral verb by bab sarf
source code
unicode char;
get_future_haraka_by_babsarf(vtype)
Get the future_type value from different codifications.
source code
unicode char;
get_haraka_by_name(haraka_name)
Convert an arabic named harakat to a real haraka values
source code
unicode char;
get_future_type_by_name(haraka_name)
Get the future_type value by haraka arabic name.
source code
unicode char;
get_future_type_entree(future_type)
Get the future_type value from different codifications.
source code
boolean;
get_transitive_entree(transitive)
Get the transitive value from different codifications.
source code
    validation functions
Boolean.
is_valid_infinitive_verb(word, IsVocalized=True)
Determine if the given word is a valid infinitive form of an arabic verb.
source code
list of unicode.
suggest_verb(verb)
Generate a list of valid infinitive verb for an invalid infinitive form.
source code
    verb pretreatment functions
unicode.
normalize_alef_madda(word)
Convert Alef madda into two letters.
source code
unicode.
normalize_hamza(word)
standardize the Hamzat into one form of hamza replace Madda by hamza and alef.
source code
unicode.
normalize(word, type='affix')
Normalize the word, by unifoming hamzat, Alef madda, shadda, and lamalefs.
source code
unicode.
uniformate_alef_origin(marks, word_nm, future_type=u'ِ')
Convert toi its origin according to the future type haraka
source code
unicode.
normalize_affix(word)
Replace shadda by SUKUN +SHADDA
source code
 
uniformate_suffix(word)
separate the harakat and the letters of the given word, it return two strings ( the word without harakat and the harakat).
source code
tuple of unicode.
uniformate_verb(word)
Separate the harakat and the letters of the given word, it return two strings ( the word without harakat and the harakat).
source code
    verb conjugation output treatment functions
unicode.
standard_harakat(word)
Treat Harakat on the word before output.
source code
tuple of unicode.
geminating(word_nm, harakat)
treat geminating cases المدخلات هي من كلمة غير مشكولة يقابلها حركاتها والحرف المضعف يمثل بشدة وإذا كانت الحالة تستوجب الفك، استبدلت الشدة بالحرف المضعف، أمّا إذا كانت لا تستوجب الفك، فتُعدّل حركة الحرف المضعف الأول إلى حركة ملغاة، تحذف في دالة الرسم الإملائي فيما بعد
source code
unicode.
standard2(word_nm, harakat)
join the harakat and the letters to the give word in the standard script, it return one strings ( the word with harakat and the harakat).
source code
tuple of unicode.
tahmeez2(word_nm, harakat)
Transform hamza on the standard script.
source code
tuple of unicode.
treat_sukun2(word_nm, harakat, swaped_haraka=u'ِ')
Treat the rencontre of sukun.
source code
tuple of unicode.
homogenize(word_nm, harakat)
لإreat the jonction of WAW, YEH.
source code
Boolean.
is_triliteral_verb(verb)
Test if the verb is triliteral, used in selectionof verbs from the triliteral verb dictionnary
source code
list of unicode.
find_triliteral_verb(db_base_path, triliteralverb, givenharaka)
Find the triliteral verb in the dictionary, return a list of possible verb forms
source code
None;
create_index_triverbtable()
Create index from the verb dictionary to accelerate the search in the dictionary for verbs
source code
list of dicts.
find_alltriverb(triverb, givenharaka=u'َ', VocalisedEntree=False)
Find the triliteral verb in the dictionary (TriVerbTable) return a list of possible verb forms each item contains:
source code
Variables [hide private]
  VALID_INFINITIVE_VERB6_pat = re.compile(r'(?u)^\u0627\u0633\u0...
  VALID_INFINITIVE_VERB4_pat = re.compile(r'(?u)^([\u0623\u0621]...
  VALID_INFINITIVE_VERB5_pat = re.compile(r'(?u)^\u0627...\u0651...
  TriVerbTable_INDEX = {}
  AIN = u'ع'
  ALEF = u'ا'
  ALEF4_HARAKA = u'y'
  ALEF_HAMZA_ABOVE = u'أ'
  ALEF_HAMZA_BELOW = u'إ'
  ALEF_HARAKA = u'ٰ'
  ALEF_MADDA = u'آ'
  ALEF_MAKSURA = u'ى'
  ALEF_MAMDUDA = '9'
  ALEF_WASLA = u'ٱ'
  ALEF_WAW_HARAKA = u'*'
  ALEF_YEH_HARAKA = u'#'
  ALTERNATIVE_YEH_HARAKA = u't'
  AlefMaddaVerbTable = {u'آبل': [u'أءبل'], u'آبه': [u'أءبه'], u'...
  BEGIN_WORD = u'^'
  BEH = u'ب'
  BYTE_ORDER_MARK = u''
  COMMA = u'،'
  ConjugBab = u'باب التصريف'
  DAD = u'ض'
  DAL = u'د'
  DAMMA = u'ُ'
  DAMMATAN = u'ٌ'
  DECIMAL = u'٫'
  EIGHT = u'٨'
  END_WORD = u'$'
  FATHA = u'َ'
  FATHATAN = u'ً'
  FEH = u'ف'
  FIVE = u'٥'
  FOUR = u'٤'
  FULL_STOP = u'۔'
  GHAIN = u'غ'
  HAH = u'ح'
  HAMZA = u'ء'
  HAMZAT = (u'أ', u'ؤ', u'ئ', u'ء', u'إ')
  HAMZAT_pat = re.compile(r'(?u)[\u0623\u0624\u0626\u0621\u0625]')
  HAMZA_ABOVE = u'ٔ'
  HAMZA_BELOW = u'ٕ'
  HARAKAT = (u'ْ', u'َ', u'ُ', u'ِ')
  HARAKAT2 = u'ٰۥۦَُِْ'
  HARAKAT_NO_SHADDA_pat = re.compile(r'[\u064b\u064c\u064d\u064e...
  HARAKAT_pat = re.compile(r'[\u064b\u064c\u064d\u064e\u064f\u06...
  HEH = u'ه'
  ImperativePronouns = (u'أنت', u'أنتِ', u'أنتما', u'أنتما مؤ', ...
  IrregularVerbsConjug = {u'ءخذَُ': {u'الأمر': (u'خذ', u'ُْ'), u...
  JEEM = u'ج'
  KAF = u'ك'
  KASRA = u'ِ'
  KASRATAN = u'ٍ'
  KHAH = u'خ'
  LAM = u'ل'
  LAM_ALEF = u''
  LAM_ALEF_HAMZA_ABOVE = u''
  LAM_ALEF_HAMZA_BELOW = u''
  LAM_ALEF_MADDA_ABOVE = u''
  LAM_ALEF_pat = re.compile(r'(?u)[\ufef7\ufef9\ufef5]')
  LONG_HARAKAT = (u'ٰ', u'ۦ', u'ۥ', u'#', u'*')
  MADDA_ABOVE = u'ٓ'
  MEEM = u'م'
  MINI_ALEF = u'ٰ'
  NINE = u'٩'
  NOON = u'ن'
  NOT_DEF_HARAKA = u'ـ'
  ONE = u'١'
  PERCENT = u'٪'
  PronounAna = u'أنا'
  PronounAnta = u'أنت'
  PronounAnti = u'أنتِ'
  PronounAntum = u'أنتم'
  PronounAntuma = u'أنتما'
  PronounAntuma_f = u'أنتما مؤ'
  PronounAntunna = u'أنتن'
  PronounHum = u'هم'
  PronounHuma = u'هما'
  PronounHuma_f = u'هما مؤ'
  PronounHunna = u'هن'
  PronounHuwa = u'هو'
  PronounHya = u'هي'
  PronounNahnu = u'نحن'
  PronounsTable = (u'أنا', u'نحن', u'أنت', u'أنتِ', u'أنتما', u'...
  PronounsTableNotPassiveForUntransitive = (u'أنا', u'نحن', u'أن...
  QAF = u'ق'
  QUESTION = u'؟'
  REH = u'ر'
  SAD = u'ص'
  SEEN = u'س'
  SEMICOLON = u'؛'
  SEVEN = u'٧'
  SHADDA = u'ّ'
  SHEEN = u'ش'
  SIX = u'٦'
  SMALL_ALEF = u'ٰ'
  SMALL_WAW = u'ۥ'
  SMALL_YEH = u'ۦ'
  STAR = u'٭'
  STRIP_HARAKA = u'i'
  SUKUN = u'ْ'
  TAH = u'ط'
  TATWEEL = u'ـ'
  TEH = u'ت'
  TEH_MARBUTA = u'ة'
  THAL = u'ذ'
  THEH = u'ث'
  THOUSANDS = u'٬'
  THREE = u'٣'
  TWO = u'٢'
  TableIndicativeTense = [u'الماضي المعلوم', u'المضارع المعلوم',...
  TablePassiveTense = [u'الماضي المجهول', u'المضارع المجهول', u'...
  TableTense = [u'الماضي المعلوم', u'المضارع المعلوم', u'المضارع...
  TableTensePronoun = {u'الأمر': {u'أنت': [u'', u'ْ'], u'أنتم': ...
  TenseConfirmedFuture = u'المضارع المؤكد الثقيل'
  TenseConfirmedImperative = u'الأمر المؤكد'
  TenseFuture = u'المضارع المعلوم'
  TenseImperative = u'الأمر'
  TenseJussiveFuture = u'المضارع المجزوم'
  TensePassiveConfirmedFuture = u'المضارع المؤكد الثقيل المجهول '
  TensePassiveFuture = u'المضارع المجهول'
  TensePassiveJussiveFuture = u'المضارع المجهول المجزوم'
  TensePassivePast = u'الماضي المجهول'
  TensePassiveSubjunctiveFuture = u'المضارع المجهول المنصوب'
  TensePast = u'الماضي المعلوم'
  TenseSubjunctiveFuture = u'المضارع المنصوب'
  TriVerbTable = {u'آبَ1': {'bab': 1, 'haraka': u'ضمة', 'root': ...
  TriVerbTableMap = {'bab': 'bab', 'haraka': 'haraka', 'root': '...
  UNIFORMATE_MARKS_4 = u'َََْ'
  UNIFORMATE_MARKS_5 = u'َََِْ'
  UNIFORMATE_MARKS_5TEH = u'ََََْ'
  UNIFORMATE_MARKS_6 = u'َََِْْ'
  WAW = u'و'
  WAW_HAMZA = u'ؤ'
  WAW_HARAKA = u'ۥ'
  YEH = u'ي'
  YEH_HAMZA = u'ئ'
  YEH_HARAKA = u'ۦ'
  ZAH = u'ظ'
  ZAIN = u'ز'
  ZERO = u'٠'
  __package__ = 'libqutrub.src'
  future = {u'أنا': [u'أ', u'ُ'], u'أنت': [u'ت', u'ُ'], u'أنتم':...
  future_confirmed = {u'أنا': [u'أ', u'َنَّ'], u'أنت': [u'ت', u'...
  future_majzoom = {u'أنا': [u'أ', u'ْ'], u'أنت': [u'ت', u'ْ'], ...
  future_mansoub = {u'أنا': [u'أ', u'َ'], u'أنت': [u'ت', u'َ'], ...
  imperative = {u'أنت': [u'', u'ْ'], u'أنتم': [u'', u'ُوٱ'], u'أ...
  imperative_confirmed = {u'أنت': [u'', u'َنَّ'], u'أنتم': [u'',...
  past = {u'أنا': [u'', u'ْتُ'], u'أنت': [u'', u'ْتَ'], u'أنتم':...
  simple_LAM_ALEF = u'لا'
  simple_LAM_ALEF_HAMZA_ABOVE = u'لأ'
  simple_LAM_ALEF_HAMZA_BELOW = u'لإ'
  simple_LAM_ALEF_MADDA_ABOVE = u'لءَا'
  tab_homogenize_alef_haraka = {u'َ': {u'َ': u'ٰ', u'ُ': u'ٰ', u...
  tab_sarf = {0: {'future': u'ِ', 'past': u'َ'}, 1: {'future': u...
  tab_tahmeez_final = {u'^': {u'َ': u'أ', u'ُ': u'أ', u'ِ': u'إ'...
  tab_tahmeez_initial = {u't': u'إ', u'َ': u'أ', u'ُ': u'أ', u'ِ...
  tab_tahmeez_middle = {u'َ': {u'َ': u'أ', u'ُ': u'ؤ', u'ِ': u'ئ...
    verb conjugation output treatment functions
  written_haraka = {u'#': u'َا', u'*': u'َا', u't': u'ِي', u'ـ':...
Function Details [hide private]

get_bab_sarf_harakat(number)

source code 

Get the the past and future marks by the bab sarf number

  • Bab: past future
  • 1 : FATHA DAMMA
  • 2 : FATHA KASRA
  • 3 : FATHA FATHA
  • 4 : KASRA FATHA
  • 5 : DAMMA DAMMA
  • 6 : KASRA KASRA
Parameters:
  • number (integer(1-6)) - Bab sarf number (1-6).
Returns: tuple;
a tuple of (past_mark, future_mark);

get_bab_sarf_number(past_haraka, future_haraka)

source code 

Get the bab sarf number by the past and future marks

  • Bab: past future
  • 1 : FATHA DAMMA
  • 2 : FATHA KASRA
  • 3 : FATHA FATHA
  • 4 : KASRA FATHA
  • 5 : DAMMA DAMMA
  • 6 : KASRA KASRA
Parameters:
  • past_haraka (unicode;) - past haraka of the verb.
  • future_haraka (unicode;) - future haraka of the verb.
Returns: integer;
Bab sarf number (1-6);

write_harakat_in_full(harakat)

source code 

Write the harakat name in full in arabic

Parameters:
  • harakat (unicode string;) - list of harakat chars.
Returns: unicode;
harakat in full;

get_past_harakat_by_babsarf(vtype)

source code 

Get the past harakat for the trileteral verb by bab sarf

  • Bab: past future
  • 1 : FATHA DAMMA
  • 2 : FATHA KASRA
  • 3 : FATHA FATHA
  • 4 : KASRA FATHA
  • 5 : DAMMA DAMMA
  • 6 : KASRA KASRA
Parameters:
  • vtype (unicode a string of number;) - the bab sarf codification.
Returns: unicode;
harakat;

get_future_harakat_by_babsarf(vtype)

source code 

Get the future harakat for the trileteral verb by bab sarf

  • Bab: past future
  • 1 : FATHA DAMMA
  • 2 : FATHA KASRA
  • 3 : FATHA FATHA
  • 4 : KASRA FATHA
  • 5 : DAMMA DAMMA
  • 6 : KASRA KASRA
Parameters:
  • vtype (unicode a string of number;) - the bab sarf codification.
Returns: unicode;
harakat;

get_future_haraka_by_babsarf(vtype)

source code 

Get the future_type value from different codifications. used also in comand line in différent context the future_type is codified as: values or values used as Conjugation mode ( Bab Tasrif باب التصريف)

  • Bab: past future
  • 1 : FATHA DAMMA
  • 2 : FATHA KASRA
  • 3 : FATHA FATHA
  • 4 : KASRA FATHA
  • 5 : DAMMA DAMMA
  • 6 : KASRA KASRA
Parameters:
  • vtype (unicode a string of number;) - the bab sarf codification.
Returns: unicode char;
haraka;

get_haraka_by_name(haraka_name)

source code 

Convert an arabic named harakat to a real haraka values

  • Fahta:(فتحة)
  • DAMMA:(ضمة)
  • KASRA:(كسرة)
Parameters:
  • haraka_name (unicode;) - the arabic name of haraka.
Returns: unicode char;
the arabic name of haraka .

get_future_type_by_name(haraka_name)

source code 

Get the future_type value by haraka arabic name. values

  • FATHA:(فتحة)
  • DAMMA:(ضمة)
  • KASRA:(كسرة)
Parameters:
  • haraka_name (unicode;) - the arabic name of haraka.
Returns: unicode char;
haraka;

get_future_type_entree(future_type)

source code 

Get the future_type value from different codifications. used also in comand line in différent context the future_type is codified as: values

  • Fahta:(fatha,فتحة,ف,f)
  • DAMMA:(damma,ضمة,ض,d)
  • KASRA:(kasra,كسرة,ك,k)

or values used as Conjugation mode ( Bab Tasrif باب التصريف)

  • Bab: past future
  • 1 : FATHA DAMMA
  • 2 : FATHA KASRA
  • 3 : FATHA FATHA
  • 4 : KASRA FATHA
  • 5 : DAMMA DAMMA
  • 6 : KASRA KASRA
Parameters:
  • future_type (unicode;) - the future_type codification.
Returns: unicode char;
extract the future type mark;

get_transitive_entree(transitive)

source code 

Get the transitive value from different codifications. in différent context the transitivity is codified as:

  • "t", "transitive",
  • u"متعدي",u"م",u"مشترك",u"ك";
  • True;
Parameters:
  • transitive (unicode;) - the transitive codification.
Returns: boolean;
True if is transitive;

is_valid_infinitive_verb(word, IsVocalized=True)

source code 

Determine if the given word is a valid infinitive form of an arabic verb. A word is not valid infinitive if

  • lenght < 3 letters.
  • starts with : ALEF_MAKSURA, WAW_HAMZA,YEH_HAMZA, HARAKAT
  • contains TEH_MARBUTA,Tanwin
  • contains non arabic letters.
  • contains ALEF_MAKSURA not in the end.
  • contains double haraka : a warning
Parameters:
  • word (unicode.) - given word.
  • IsVocalized (Boolean, default(True).) - if the given word is vocalized.
Returns: Boolean.
True if the word is a valid infinitive form of verb.

suggest_verb(verb)

source code 

Generate a list of valid infinitive verb for an invalid infinitive form.

Parameters:
  • verb (unicode.) - given verb, of invalid infinitive form.
Returns: list of unicode.
a list of suggested infinitive verb forms

normalize_alef_madda(word)

source code 

Convert Alef madda into two letters.

Parameters:
  • word (unicode.) - given word.
Returns: unicode.
converted word.

normalize_hamza(word)

source code 

standardize the Hamzat into one form of hamza replace Madda by hamza and alef.

Parameters:
  • word (unicode.) - given word.
Returns: unicode.
converted word.

normalize(word, type='affix')

source code 

Normalize the word, by unifoming hamzat, Alef madda, shadda, and lamalefs.

Parameters:
  • word (unicode.) - given word.
  • type (unicode.) - if the word is an affix
Returns: unicode.
converted word.

uniformate_alef_origin(marks, word_nm, future_type=u'ِ')

source code 

Convert toi its origin according to the future type haraka

Parameters:
  • marks (unicode.) - given marks.
  • word_nm (unicode.) - given word unvocalized.
  • future_type (unicode char, default KASRA.) - The future mark of the triletiral verb.
Returns: unicode.
converted marks.

normalize_affix(word)

source code 

Replace shadda by SUKUN +SHADDA

Parameters:
  • word (unicode.) - given word.
Returns: unicode.
converted word.

uniformate_suffix(word)

source code 

separate the harakat and the letters of the given word, it return two strings ( the word without harakat and the harakat). If the weaked letters are reprsented as long harakat and striped from the word.

uniformate_verb(word)

source code 

Separate the harakat and the letters of the given word, it return two strings ( the word without harakat and the harakat). If the weaked letters are reprsented as long harakat and striped from the word.

Parameters:
  • word (unicode.) - given word.
Returns: tuple of unicode.
(letters, harakat).

standard_harakat(word)

source code 

Treat Harakat on the word before output. معالجة الحركات قبل الإخراج،

Parameters:
  • word (unicode.) - given vocalized word.
Returns: unicode.
<vocalized word with ajusted harakat.

geminating(word_nm, harakat)

source code 

treat geminating cases المدخلات هي من كلمة غير مشكولة يقابلها حركاتها والحرف المضعف يمثل بشدة وإذا كانت الحالة تستوجب الفك، استبدلت الشدة بالحرف المضعف، أمّا إذا كانت لا تستوجب الفك، فتُعدّل حركة الحرف المضعف الأول إلى حركة ملغاة، تحذف في دالة الرسم الإملائي فيما بعد

Parameters:
  • word_nm (unicode.) - given unvocalized word.
  • harakat (unicode.) - given harakat.
Returns: tuple of unicode.
(letters, harakat).

standard2(word_nm, harakat)

source code 

join the harakat and the letters to the give word in the standard script, it return one strings ( the word with harakat and the harakat).

Parameters:
  • word_nm (unicode.) - given unvocalized word.
  • harakat (unicode.) - given harakat.
Returns: unicode.
vocalized word.

tahmeez2(word_nm, harakat)

source code 

Transform hamza on the standard script. in entry the word without harakat and the harakat seperately return the word with non uniform hamza.

إعلال و إبدال الهمزة.

Parameters:
  • word_nm (unicode.) - given unvocalized word.
  • harakat (unicode.) - given harakat.
Returns: tuple of unicode.
(letters, harakat) after treatment.

treat_sukun2(word_nm, harakat, swaped_haraka=u'ِ')

source code 

Treat the rencontre of sukun. in entry the word without harakat and the harakat seperately, and the probably haraka return the new sequence of harakat

Parameters:
  • word_nm (unicode.) - given unvocalized word.
  • harakat (unicode.) - given harakat.
  • swaped_haraka (unicode char, default KASRA.) - the swap haraka. الحركة المطبقة في الإعلال
Returns: tuple of unicode.
(letters, harakat).

homogenize(word_nm, harakat)

source code 

لإreat the jonction of WAW, YEH. معالجة التحولات التي تطرا على الياء أو الوا في وسط الكلمة أو في اخرها

Parameters:
  • word_nm (unicode.) - given unvocalized word.
  • harakat (unicode.) - given harakat.
Returns: tuple of unicode.
(letters, harakat)after treatment.

is_triliteral_verb(verb)

source code 

Test if the verb is triliteral, used in selectionof verbs from the triliteral verb dictionnary

Parameters:
  • verb (unicode.) - given verb.
Returns: Boolean.
True if the verb is triliteral.

find_triliteral_verb(db_base_path, triliteralverb, givenharaka)

source code 

Find the triliteral verb in the dictionary, return a list of possible verb forms

Parameters:
  • db_base_path (path string.) - the database path
  • triliteralverb (unicode.) - given verb.
  • givenharaka (unicode.) - given haraka of tuture type of the verb.
Returns: list of unicode.
list of triliteral verbs.

create_index_triverbtable()

source code 

Create index from the verb dictionary to accelerate the search in the dictionary for verbs

Returns: None;
create the TriVerbTable_INDEX;

find_alltriverb(triverb, givenharaka=u'َ', VocalisedEntree=False)

source code 

Find the triliteral verb in the dictionary (TriVerbTable) return a list of possible verb forms each item contains:

  • 'root':
  • 'haraka:
  • 'bab':
  • 'transitive':
Parameters:
  • triverb (unicode.) - given verb.
  • givenharaka (unicode.) - given haraka of tuture type of the verb, default(FATHA).
  • VocalisedEntree (Boolean.) - True if the given verb is vocalized, default False.
Returns: list of dicts.
list of triliteral verbs.

Variables Details [hide private]

VALID_INFINITIVE_VERB6_pat

Value:
re.compile(r'(?u)^\u0627\u0633\u062a...|\u0627..\u0646..|\u0627..\u064\
8..|\u0627..\u0627.\u0651|\u0627....\u0651|\u0627.\u0651.\u0651.|\u062\
7.\u0651\u0627..$')

VALID_INFINITIVE_VERB4_pat

Value:
re.compile(r'(?u)^([\u0623\u0621][^\u0651]{2}.|[^\u0627\u0651]\u0627[^\
\u0627\u0651].|[^\u0627\u0651]{2}\u0651[^\u0651]|[^\u0627\u0651]{4})$'\
)

VALID_INFINITIVE_VERB5_pat

Value:
re.compile(r'(?u)^\u0627...\u0651$|\u0627[\u062a\u0630\u0637]\u0651..$\
|\u0627[\u062a\u0630\u0637]\u0651[^\u0627\u0651][^\u0627\u0651]$|\u062\
7\u0646...$|(\u0627\u0632\u062f|\u0635\u0637|\u0636\u0637)..$^\u0627[^\
\u0635\u0636\u0637\u0638\u062f]\u062a..$|\u0627...\u0651$|\u0627.\u065\
1..$|\u0627...\u0649$')

written_haraka

Value:
{u'#': u'َا',
 u'*': u'َا',
 u't': u'ِي',
 u'ـ': '',
 u'َ': u'َ',
 u'ُ': u'ُ',
 u'ِ': u'ِ',
 u'ّ': u'ّ',
...

AlefMaddaVerbTable

Value:
{u'آبل': [u'أءبل'],
 u'آبه': [u'أءبه'],
 u'آبى': [u'أءبى'],
 u'آتم': [u'أءتم'],
 u'آتن': [u'أءتن'],
 u'آتى': [u'أءتى'],
 u'آثر': [u'أءثر'],
 u'آثف': [u'أءثف'],
...

HARAKAT_NO_SHADDA_pat

Value:
re.compile(r'[\u064b\u064c\u064d\u064e\u064f\u0650\u0652]')

HARAKAT_pat

Value:
re.compile(r'[\u064b\u064c\u064d\u064e\u064f\u0650\u0652\u0651]')

ImperativePronouns

Value:
(u'أنت', u'أنتِ', u'أنتما', u'أنتما مؤ', u'أنتم', u'أنتن')

IrregularVerbsConjug

Value:
{u'ءخذَُ': {u'الأمر': (u'خذ', u'ُْ'),
            u'المضارع المجهول': (u'ءخذ', u'ََُْ'),
            u'المضارع المعلوم': (u'ءخذ', u'َُُْ'),
            u'باب التصريف': (u'َ', u'ُ')},
 u'ءريََ': {u'الأمر': (u'ءري', u'ََِ'),
            u'المضارع المجهول': (u'ري', u'ََُ'),
            u'المضارع المعلوم': (u'ري', u'َُِ'),
            u'باب التصريف': (u'َ', u'َ')},
...

PronounsTable

Value:
(u'أنا',
 u'نحن',
 u'أنت',
 u'أنتِ',
 u'أنتما',
 u'أنتما مؤ',
 u'أنتم',
 u'أنتن',
...

PronounsTableNotPassiveForUntransitive

Value:
(u'أنا',
 u'نحن',
 u'أنت',
 u'أنتِ',
 u'أنتما',
 u'أنتما مؤ',
 u'أنتم',
 u'أنتن',
...

TableIndicativeTense

Value:
[u'الماضي المعلوم',
 u'المضارع المعلوم',
 u'المضارع المجزوم',
 u'المضارع المنصوب',
 u'المضارع المؤكد الثقيل',
 u'الأمر',
 u'الأمر المؤكد']

TablePassiveTense

Value:
[u'الماضي المجهول',
 u'المضارع المجهول',
 u'المضارع المجهول المجزوم',
 u'المضارع المجهول المنصوب',
 u'المضارع المؤكد الثقيل المجهول ']

TableTense

Value:
[u'الماضي المعلوم',
 u'المضارع المعلوم',
 u'المضارع المجزوم',
 u'المضارع المنصوب',
 u'المضارع المؤكد الثقيل',
 u'الأمر',
 u'الأمر المؤكد',
 u'الماضي المجهول',
...

TableTensePronoun

Value:
{u'الأمر': {u'أنت': [u'', u'ْ'],
            u'أنتم': [u'', u'ُوٱ'],
            u'أنتما': [u'', u'َا'],
            u'أنتما مؤ': [u'', u'َا'],
            u'أنتن': [u'', u'ْنَ'],
            u'أنتِ': [u'', u'ِي']},
 u'الأمر المؤكد': {u'أنت': [u'', u'َنَّ'],
                   u'أنتم': [u'', u'ُنَّ'],
...

TriVerbTable

Value:
{u'آبَ1': {'bab': 1,
           'haraka': u'ضمة',
           'root': u'ءوب',
           'transitive': u'ك',
           'verb': u'آبَ'},
 u'آبَ2': {'bab': 2,
           'haraka': u'كسرة',
           'root': u'ءيب',
...

TriVerbTableMap

Value:
{'bab': 'bab',
 'haraka': 'haraka',
 'root': 'root',
 'transitive': 'transitive',
 'verb': 'verb'}

future

Value:
{u'أنا': [u'أ', u'ُ'],
 u'أنت': [u'ت', u'ُ'],
 u'أنتم': [u'ت', u'ُونَ'],
 u'أنتما': [u'ت', u'َانِ'],
 u'أنتما مؤ': [u'ت', u'َانِ'],
 u'أنتن': [u'ت', u'ْنَ'],
 u'أنتِ': [u'ت', u'ِينَ'],
 u'نحن': [u'ن', u'ُ'],
...

future_confirmed

Value:
{u'أنا': [u'أ', u'َنَّ'],
 u'أنت': [u'ت', u'َنَّ'],
 u'أنتم': [u'ت', u'ُنَّ'],
 u'أنتما': [u'ت', u'َانِّ'],
 u'أنتما مؤ': [u'ت', u'َانِّ'],
 u'أنتن': [u'ت', u'ْنَانِّ'],
 u'أنتِ': [u'ت', u'ِنَّ'],
 u'نحن': [u'ن', u'َنَّ'],
...

future_majzoom

Value:
{u'أنا': [u'أ', u'ْ'],
 u'أنت': [u'ت', u'ْ'],
 u'أنتم': [u'ت', u'ُوٱ'],
 u'أنتما': [u'ت', u'َا'],
 u'أنتما مؤ': [u'ت', u'َا'],
 u'أنتن': [u'ت', u'ْنَ'],
 u'أنتِ': [u'ت', u'ِي'],
 u'نحن': [u'ن', u'ْ'],
...

future_mansoub

Value:
{u'أنا': [u'أ', u'َ'],
 u'أنت': [u'ت', u'َ'],
 u'أنتم': [u'ت', u'ُوٱ'],
 u'أنتما': [u'ت', u'َا'],
 u'أنتما مؤ': [u'ت', u'َا'],
 u'أنتن': [u'ت', u'ْنَ'],
 u'أنتِ': [u'ت', u'ِي'],
 u'نحن': [u'ن', u'َ'],
...

imperative

Value:
{u'أنت': [u'', u'ْ'],
 u'أنتم': [u'', u'ُوٱ'],
 u'أنتما': [u'', u'َا'],
 u'أنتما مؤ': [u'', u'َا'],
 u'أنتن': [u'', u'ْنَ'],
 u'أنتِ': [u'', u'ِي']}

imperative_confirmed

Value:
{u'أنت': [u'', u'َنَّ'],
 u'أنتم': [u'', u'ُنَّ'],
 u'أنتما': [u'', u'َانِّ'],
 u'أنتما مؤ': [u'', u'َانِّ'],
 u'أنتن': [u'', u'ْنَانِّ'],
 u'أنتِ': [u'', u'ِنَّ']}

past

Value:
{u'أنا': [u'', u'ْتُ'],
 u'أنت': [u'', u'ْتَ'],
 u'أنتم': [u'', u'ْتُم'],
 u'أنتما': [u'', u'ْتُما'],
 u'أنتما مؤ': [u'', u'ْتُما'],
 u'أنتن': [u'', u'ْتُنَّ'],
 u'أنتِ': [u'', u'ْتِ'],
 u'نحن': [u'', u'ْنَا'],
...

tab_homogenize_alef_haraka

Value:
{u'َ': {u'َ': u'ٰ', u'ُ': u'ٰ', u'ِ': u'ٰ', u'ْ': u'ٰ'},
 u'ُ': {u'َ': u'ٰ', u'ُ': u'ٰ', u'ِ': u'ۦ', u'ْ': u'ۥ'},
 u'ِ': {u'َ': u'ٰ', u'ُ': u'ۦ', u'ِ': u'ٰ', u'ْ': u'ۦ'},
 u'ْ': {u'َ': u'ٰ', u'ُ': u'ۥ', u'ِ': u'ۦ', u'ْ': '*'}}

tab_sarf

Value:
{0: {'future': u'ِ', 'past': u'َ'},
 1: {'future': u'ُ', 'past': u'َ'},
 2: {'future': u'ِ', 'past': u'َ'},
 3: {'future': u'َ', 'past': u'َ'},
 4: {'future': u'َ', 'past': u'ِ'},
 5: {'future': u'ِ', 'past': u'ِ'},
 6: {'future': u'ُ', 'past': u'ُ'}}

tab_tahmeez_final

Value:
{u'^': {u'َ': u'أ',
        u'ُ': u'أ',
        u'ِ': u'إ',
        u'ْ': u'ء',
        u'ٰ': u'آ',
        u'ۥ': u'أ',
        u'ۦ': u'أ'},
 u'َ': {u'َ': u'أ', u'ُ': u'أ', u'ِ': u'إ', u'ْ': u'أ', u'ٰ': u'أ', u'\
...

tab_tahmeez_initial

Value:
{u't': u'إ',
 u'َ': u'أ',
 u'ُ': u'أ',
 u'ِ': u'إ',
 u'ْ': u'ء',
 u'ٰ': u'آ',
 u'ۥ': u'أ',
 u'ۦ': u'إ'}

tab_tahmeez_middle

Value:
{u'َ': {u'َ': u'أ',
        u'ُ': u'ؤ',
        u'ِ': u'ئ',
        u'ْ': u'أ',
        u'ٰ': u'أ',
        u'ۥ': u'ؤ',
        u'ۦ': u'ئ'},
 u'ُ': {u'َ': u'ؤ', u'ُ': u'ؤ', u'ِ': u'ئ', u'ْ': u'ؤ', u'ٰ': u'ؤ', u'\
...