Skip to main content

Qutrub

Qutrub: Arabic verb conjugation software قطرب: تصريف الأفعال العربية

Developpers: Taha Zerrouki: http://tahadz.com taha dot zerrouki at gmail dot com

Feature s

value

Authors

Authors.md

Release

1.5 (app), 1.2.4 (library)

License

GPL

Tracker

linuxscout/qutrub/Issues

Mailing list

` <http://groups.google.com/group/qutrub/>`__

Website

qutrub.arabeyes.org

Source

Github

Downloa d

sourceforge

Feedbac ks

Comments

Account s

[@Twitter](https://twitter.com/linuxscout) [@Sourceforge](http://sourceforge.net/projectsqutrub/)

Install

Requirements

pyarabic>=0.6.2

Installation on Apache

enable mod_python in Apache extract the qutrub package and run it from the web. The program don’t need a database.

Installation as library

pip install libqutrub

Installation as an application

check that python 2.5, it support python3 or higher is installed extract the package run the conjugate.py script

usage


   (C) CopyLeft 2009, Taha Zerrouki
   Usage: conjugate -f filename [OPTIONS]
       [-h | --help]       outputs this usage message
       [-V | --version]    program version
       [-f | --file= filename] input file to conjugate
       [-d | --display=  format]   display format as html,csv, tex, xml"
       [-a | --all ]       Conjugate in all tenses
       [-i | --imperative] Conjugate in imperative
       [-F | --future]     conjugate in the present and the future
       [-p | --past]       conjugate in the past
       [-c | --confirmed]  conjugate in confirmed ( future or imperative) "
       [-m | --moode]      conjugate in future Subjunctive( mansoub) or Jussive (majzoom) "
       [-v | --passive]    passive form
       N.B. FILE FORMAT is descripted in README
       This program is licensed under the GPL License

Input file format

-File encoding must be “utf8” The input file format is a text comma separeted csv Fields are separated by tabulation. A line can be ignored, if it begin by ‘#’ The first field is the verb in vocalised form The second field is the mark of the letter before last in the future tense, it used just for the verb Thulathi (with three letters).

values
    Fahta:
        1- fatha
        2-فتحة
        3-ف
        4-f
    DAMMA:
        1- damma
        2-ضمة
        3-ض
        4-d
    kasra:
        1- kasra
        2-كسرة
        3-ك
        4-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

The third field is :Transitive/intransitive values can be used in this field are:

transitive :
        1-متعدي
        2-م
        3-مشترك
        4-ك
        5-t
        6-transitive
intransitive:
        1-لازم
        2-ل
        3-i
        4-intransitive

Example #### commented line

كَتَبَ  ضمة متعدي
ضَرَبَ  كسرة    متعدي
ذَكَرَ  ضمة متعدي
سَكَتَ  ضمة لازم
سَكَنَ  ضمة متعدي
عَلَّمَ     متعدي
صَارَعَ -   متعدي
أَكْرَمَ    -   متعدي
تَفَقَّدَ   -   متعدي
تَنَازَعَ   -   متعدي
اِدَّارَكَ  -   متعدي

This program is licensed under the GPL License

Call from python

  • Simple call

import libqutrub.conjugator

verb=u"سعد"
future\_type =u"كسرة"
table = libqutrub.conjugator.conjugate(verb,future\_type, transitive= True);
print(table)
  • display format display format can be : - ‘Text’ - ‘HTML’ ‘HTMLColoredDiacritics’ - ‘DICT’ - ‘CSV’ - ‘GUI’ - ‘TABLE’ - ‘XML’ - ‘TeX’ - ‘ROWS’

import libqutrub.conjugator

verb=u"سعد"
future\_type =u"كسرة"
table =
libqutrub.conjugator.conjugate(verb,future\_type, transitive= True,
display\_format="DICT");
print(table)
  • more options

import libqutrub.conjugator

verb=u"سعد"
future\_type =u"كسرة"
transitive =True
display\_format="HTML"


all = True # all tenses
past = True
future=True
passive =True
imperative=True
future\_moode= True
confirmed=False
table =libqutrub.conjugator.conjugate(verb,future\_type,all,past,future,passive,imperative,future\_moode,confirmed,transitive,display\_format);
print(table)

Release files for libqutrub 1.2.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libqutrub 1.2.4.1
File Size Uploaded
libqutrub-1.2.4.1.tar.gz 127.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for libqutrub 1.2.4.1
File Interpreter ABI Platform
libqutrub-1.2.4.1-py3-none-any.whl Python 3 none any Details
libqutrub-1.2.4.1-py2-none-any.whl Python 2 none any Details

Total release size: 402.8 kB

Release files / libqutrub-1.2.4.1.tar.gz

Download URL libqutrub-1.2.4.1.tar.gz
Size 127.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2b69635d8983639131560aec8ee14b08c12d6a8e943fc1963c988721fbdbe6f5
BLAKE2b-256 checksum
How to use checksums
b3093291c40b40862c1031c310f8ac9afcfdcefdaf46b7a8dae9f6c6fdbfb76c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.12

Release files / libqutrub-1.2.4.1-py3-none-any.whl

Download URL libqutrub-1.2.4.1-py3-none-any.whl
Size 139.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
571ca2d75ace0ae62c2bfc2f9dc3ae37ba6238d7b9d1c5e091ad65e1efca3108
BLAKE2b-256 checksum
How to use checksums
f961d55311dff8210c0114e4d5575d36231de5215a59f331b9bd404899ab1e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.12

Release files / libqutrub-1.2.4.1-py2-none-any.whl

Download URL libqutrub-1.2.4.1-py2-none-any.whl
Size 136.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
4a5c304bc4cf272721a92819515b3a730de020b54ada4a399a51ba7788fb1e2b
BLAKE2b-256 checksum
How to use checksums
571a98beae3f9fbe69e3107657a0c1fee10906dc5ad756c081e26925de78ef1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.12

Release history Release notifications | RSS feed

This release

1.2.4.1 This release

3 release files

1.2.4

3 release files

1.2.3

3 release files

1.2.1

3 release files

1.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page