XML output
It's now possible to generate the ACON conjugation results as XML. XML has obvious advantages when it comes to parsing the data.
To acces this option you need to go to this (xml.php) page.
You will notice that the page is blank, to get it to create output you need to pass the page some variables through the url (GET method):
- type: The type of verb (I to X)
- ivowel: the vowel that a type I verb has in the imperfect tenses (a, i or u)
- pvowel: the vowel that a type I verb has in the perfect tense (a, i or u)
- r1, r2 and r3: the three letters of the root (r1= ف, r2= ع and r3= ل)
Here are some examples:
- جلس type I, pvowel = a, ivowel = i
- غرق type X
Notice that the arabic letters are URL encoded UTF-8 characters. Take a look at this page for a quick overview and further links.
Also notice that the ivowel and pvowel variables are optional and only mandatory for type I verbs.
XML structure
The current XML structure (v.1) is pretty straightforward:
- verb: The top level node.
- info:This node contains some information about the verb
- root: The root letters of the verb
- type: The form in which it is conjugated
- tense: there are 4 tense nodes at this level. They are named: perfect, imperfect, subjunctive and jussive.
- active/passive: Each of these tenses has two nodes named active and passive
- number: Contains the nodes singular, dual and plural
- person: Contains the nodes c1, m2, f2, m3 and f3. The dual does not have a c1 node. Even when certain persons yield identical conjugated verbs (ex.: imperfect 2. male singular & 3. femal singular) they are all supplied.
Some examples:
- verb.perfect.active.plural.c1
- verb.imperfect.passive.dual.m2
- verb.jussive.info.root
ACON main page
© Baykal Erol
|