Jump to content

Wikifunctions:WikiProject Tunisian Arabic

From Wikifunctions

Description

The WikiProject Tunisian Arabic is dedicated to developing and implementing grammar rules for Tunisian Arabic using Python and JavaScript. The project focuses on addressing various aspects such as tenses, numbers, persons, derivations, as well as negation and affirmation. The overall goal of the project is to enhance digital tools for Tunisian Arabic, accommodate dialect variations, and improve educational resources and natural language processing applications.

Functions

Nouns

Function Name Description Input Output
derive_plural(noun_base) Derives the plural form of the noun from the base singular masculine form. Singular masculine noun Plural form (e.g., 'كتاب' → 'كتب')
derive_feminine(noun_base) Converts the singular masculine noun into the feminine form. Singular masculine noun Feminine form (e.g., 'مدرس' → 'مدرسة')
derive_plural_feminine(noun_base) Derives the plural feminine form from the singular masculine base. Singular masculine noun Feminine plural form (e.g., 'معلمة' → 'معلمات')
derive_dual(noun_base, gender) Derives the dual form of the noun for both masculine and feminine. Singular masculine noun, gender Dual form (e.g., 'كتابان' for masculine, 'كتابين' for feminine in accusative/genitive case)
determine_noun_pattern(noun_base) Identifies the noun pattern (e.g., sound, broken) from the base form. Singular masculine noun Noun pattern (e.g., 'كتاب' follows the sound pattern)
apply_case(noun_form, case) Applies the appropriate grammatical case (nominative, accusative, genitive) to the noun form. Noun form, case Noun in the correct case (e.g., 'كتابٌ' for nominative)
derive_possessive(noun_base, person, number, gender) Derives the possessive form of the noun, depending on person, number, and gender. Singular masculine noun, person, number, gender Possessive form (e.g., 'كتابي' for "my book," 'كتابه' for "his book")
derive_diminutive(noun_base) Derives the diminutive form of the noun from the singular masculine base. Singular masculine noun Diminutive form (e.g., 'كتاب' → 'كتيب')
derive_definite_form(noun_base) Adds the definite article to the noun, making it definite. Singular masculine noun Definite form (e.g., 'كتاب' → 'الكتاب')
apply_negation(noun_base) Forms a negation or absence of the noun in a sentence. Singular masculine noun Negated noun phrase (e.g., 'ليس هناك كتاب' for "there is no book")

Verbs

Function Name Description Input Output
extract_root_from_imperative(imperative_singular) Extracts the verb root from the imperative singular form for deriving all other tenses and forms. Imperative singular verb (e.g., 'اكتب') Verb root (e.g., 'كتب')
determine_pattern(imperative_singular) Identifies the verb pattern (binyan) from the imperative singular form. Imperative singular verb Verb pattern
derive_present_tense(imperative_singular, person, number, gender) Derives the present tense from the imperative singular, considering the person (1st, 2nd, 3rd), number (singular/plural), and gender (masculine/feminine). Imperative singular, person, number, gender Present tense form (e.g., 'يكتب', 'تكتب')
derive_past_tense(imperative_singular, person, number, gender) Derives the past tense from the imperative singular. Imperative singular, person, number, gender Past tense form (e.g., 'كتب', 'كتبت')
derive_future_tense(imperative_singular, person, number, gender) Derives the future tense from the imperative singular, with the prefix 'بش'. Imperative singular, person, number, gender Future tense form (e.g., 'بش يكتب')
derive_imperative_plural(imperative_singular, gender) Derives the imperative plural from the singular, considering masculine and feminine forms. Imperative singular, gender Imperative plural (e.g., 'اكتبوا')
apply_person_number_gender(verb_form, person, number, gender) Adjusts the verb form for person (1st, 2nd, 3rd), number (singular/plural), and gender (masculine/feminine). Verb form, person, number, gender Conjugated verb based on person, number, and gender
derive_active_participle(imperative_singular, gender) Derives the active participle rom the imperative singular with gender distinction.Imperative singular, gender Active participle (e.g., 'كاتب', 'كاتبة')
derive_passive_participle(imperative_singular, gender) Derives the passive participle from the imperative singular with gender distinction. Imperative singular, gender Passive participle (e.g., 'مكتوب', 'مكتوبة')
derive_verbal_noun(imperative_singular) Derives the verbal noun (Masdar) from the imperative singular. Imperative singular Verbal noun (e.g., 'كتابة')
apply_negation(verb_form, tense, gender) Converts the verb into its negative form based on the tense and gender. Verb form, tense, gender Negative form (e.g., 'ما يكتبش', 'ما تكتبش')

Adjective

Function Name Description Input Output
derive_feminine_adjective(adjective_base) Converts the singular masculine adjective into its feminine form. Singular masculine adjective Feminine form (e.g., 'جميل' → 'جميلة')
derive_plural_adjective(adjective_base, gender) Converts the singular masculine adjective into the plural form, considering gender. Singular masculine adjective, gender Plural form (e.g., 'جميل' → 'جميلون' for masculine, 'جميلات' for feminine)
derive_dual_adjective(adjective_base, gender) Converts the singular masculine adjective into the dual form, considering gender. Singular masculine adjective, gender Dual form (e.g., 'جميلان' for masculine, 'جميلتان' for feminine)
derive_comparative(adjective_base) Derives the comparative form of the adjective. Singular masculine adjective Comparative form (e.g., 'أجمل' for "more beautiful")
derive_superlative(adjective_base) Derives the superlative form of the adjective. Singular masculine adjective Superlative form (e.g., 'الأجمل' for "the most beautiful")
apply_case_adjective(adjective_form, case) Applies the appropriate grammatical case (nominative, accusative, genitive) to the adjective form. Adjective form, case Adjective in the correct case (e.g., 'جميلٌ' for nominative)
derive_definite_adjective(adjective_base) Adds the definite article to the adjective, making it definite. Singular masculine adjective Definite adjective form (e.g., 'جميل' → 'الجميل')
apply_negation_adjective(adjective_base) Negates the adjective to express the opposite meaning in context. Singular masculine adjective Negated adjective phrase (e.g., 'غير جميل' for "not beautiful")
derive_intensive_form(adjective_base) Derives an intensive form of the adjective, emphasizing its quality. Singular masculine adjective Intensive form (e.g., 'جميل' → 'جميل جداً' for "very beautiful")

Adverb

Function Name Description Input Output
derive_adverb_from_adjective(adjective_base) Converts an adjective into its adverbial form. Adjective base Adverb form (e.g., 'جميل' → 'جميلًا' for "beautifully")
derive_adverb_of_degree(adverb_base) Forms an adverb of degree, indicating the intensity of the action or quality. Adverb base Degree adverb (e.g., 'جيد' → 'جيد جدًا' for "very good")
derive_adverb_of_frequency(adverb_base) Forms an adverb of frequency, describing how often something occurs. Adverb base Frequency adverb (e.g., 'أحياناً' → 'دائماً' for "always")
derive_adverb_of_manner(adjective_base) Converts an adjective into an adverb that describes the manner of the action. Adjective base Manner adverb (e.g., 'بطيء' → 'ببطء' for "slowly")
derive_adverb_of_place(adverb_base) Forms an adverb of place, indicating location or direction. Adverb base Place adverb (e.g., 'هنا' → 'هناك' for "there")
derive_adverb_of_time(adverb_base) Forms an adverb of time, indicating when or how often something happens. Adverb base Time adverb (e.g., 'اليوم' → 'غداً' for "tomorrow")
derive_adverb_of_condition(adverb_base) Forms an adverb of condition, specifying the conditions under which something occurs. Adverb base Condition adverb (e.g., 'إذا' → 'بشرط أن' for "provided that")
derive_intensifier_adverb(adverb_base) Converts a base adverb into an intensifier, enhancing the degree of the action or quality. Adverb base Intensifier adverb (e.g., 'جيد' → 'جيد جداً' for "very good")
derive_negative_adverb(adverb_base) Forms a negative adverb, expressing negation or absence. Adverb base Negative adverb (e.g., 'أبداً' for "never")
derive_comparative_adverb(adverb_base) Forms the comparative version of an adverb, comparing the intensity or manner. Adverb base Comparative adverb (e.g., 'جيد' → 'أفضل' for "better")
derive_superlative_adverb(adverb_base) Forms the superlative version of an adverb, indicating the highest degree. Adverb base Superlative adverb (e.g., 'جيد' → 'الأفضل' for "the best")
derive_frequency_adverb(adverb_base) Forms an adverb of frequency, describing how often an action occurs. Adverb base Frequency adverb (e.g., 'نادراً' for "rarely")
derive_conjunction_adverb(adverb_base) Forms an adverb that functions similarly to a conjunction, connecting clauses. Adverb base Conjunction adverb (e.g., 'ثم' for "then")

Conjunctions

Function Name Description Input Output
derive_plural_conjunction(conjunction_base) Adjusts the conjunction for plural contexts if applicable. Singular masculine conjunction Plural form of conjunction (if applicable, e.g., 'و' (and) remains the same)
apply_negation_conjunction(conjunction_base) Applies negation to conjunction to introduce a negative meaning. Conjunction base Negated conjunction (e.g., 'و' → 'ولا' for "and not")
combine_conjunctions(conjunction_base1, conjunction_base2) Combines two conjunctions for specific sentence structures. Two conjunctions Combined conjunction (e.g., 'لكن' + 'و' → 'ولكن')
apply_case_conjunction(conjunction_base, case) Adjusts the conjunction based on the case of the following noun or verb. Conjunction base, case Case-based conjunction form (if applicable)
derive_emphatic_conjunction(conjunction_base) Derives an emphatic version of the conjunction to stress the connection. Conjunction base Emphatic conjunction (e.g., 'ثم' → 'ثم إن')

Prepositions

Function Name Description Input Output
apply_plural_preposition(preposition_base, gender) Adjusts the preposition to account for plural contexts, considering gender where necessary. Preposition base, gender Preposition adjusted for plural context (if applicable, e.g., 'فيهم' for "in them")
derive_dual_preposition(preposition_base, gender) Adjusts the preposition for dual contexts, considering gender. Preposition base, gender Dual form of the preposition (e.g., 'فيهما' for "in both of them")
apply_negation_preposition(preposition_base) Converts the preposition into its negative form. Preposition base Negated preposition (e.g., 'بدون' for "without")
apply_case_preposition(preposition_base, case) Adjusts the preposition depending on the case of the following noun (nominative, accusative, genitive). Preposition base, case Case-based prepositional form
derive_definite_preposition(preposition_base) Combines the preposition with a definite noun (e.g., 'في' + 'البيت' → 'في البيت'). Preposition base, definite noun Definite prepositional phrase
apply_possessive_preposition(preposition_base, person, number, gender) Adjusts the preposition to reflect possession, based on person, number, and gender. Preposition base, person, number, gender Possessive prepositional form (e.g., 'له' for "for him", 'لهم' for "for them")

Determiners

Function Name Description Input Output
derive_feminine_determiner(determiner_base) Converts the singular masculine determiner into its feminine form. Singular masculine determiner Feminine form (e.g., 'هذا' → 'هذه')
derive_plural_determiner(determiner_base, gender) Converts the singular masculine determiner into the plural form, considering gender. Singular masculine determiner, gender Plural form (e.g., 'هؤلاء' for masculine and feminine plural)
derive_dual_determiner(determiner_base, gender) Converts the singular masculine determiner into the dual form, considering gender. Singular masculine determiner, gender Dual form (e.g., 'هذان' for masculine, 'هاتان' for feminine)
derive_definite_determiner(determiner_base) Adds the definite form to the determiner, marking it as definite. Singular masculine determiner Definite form of determiner (e.g., 'ذلك' for "that")
apply_case_determiner(determiner_base, case) Adjusts the determiner to reflect grammatical case (nominative, accusative, genitive). Determiner base, case Determiner in the correct case (e.g., 'هذا' for nominative, 'هذاك' for accusative)
apply_negation_determiner(determiner_base) Applies negation to the determiner to express a negative context. Singular masculine determiner Negated determiner (e.g., 'ليس هذا' for "not this")
apply_distance_determiner(determiner_base, distance) Adjusts the determiner based on distance (proximal vs. distal). Singular masculine determiner, distance Determiner based on distance (e.g., 'هذا' for proximal, 'ذلك' for distal)
derive_possessive_determiner(determiner_base, person, number, gender) Derives a possessive determiner based on person, number, and gender. Singular masculine determiner, person, number, gender Possessive determiner (e.g., 'هذا كتابي' for "this is my book")

Others

Function Name Description Input Output
phonetic_transcription(term) Converts the term into its phonetic transcription to represent pronunciation. Term Phonetic transcription (e.g., 'جيداً' → '/ˈd͡ʒiːdan/')
generate_syllables(term) Breaks down the term into its syllables for easier pronunciation and analysis. Term Syllable breakdown (e.g., 'ببطء' → 'بِ-بُطْء')
stress_pattern(term) Identifies and marks the stress pattern in the term for pronunciation guidance. Term Stress pattern (e.g., 'جميلاً' → 'جَميلًا')
derive_synonyms(term) Provides synonyms for the given term to offer alternative expressions. Term List of synonyms (e.g., 'بسرعة' → 'عاجلاً', 'بسرعةٍ')
derive_antonyms(term) Provides antonyms for the given term to offer opposite expressions. Term List of antonyms (e.g., 'ببطء' → 'بسرعة')
form_after_number(number) Provides whether the noun comes in singular or in plural after a given number. Number Form (e.g., 100 → 'Singular')

Participants

--Csisc (talk) 14:33, 7 September 2024 (UTC)[reply]