17 | | In grammar rules are used different arrow marks (->, -->, ==>, ===>), that specify rule type. The meaning of arrow form is: "the thicker and longer the arrow the more actions are able to be done in rule translation". The '->' arrow de-notates an ordinary context free grammar transcription and '===>' inserts possible integer_segment between right hand side constituents, checks the correct order of enclitics and supplies several forms of rule to make the verb phrase into a full sentence. |
18 | | |
| 17 | In grammar rules are used different arrow marks (->, -->, ==>, ===>), that specify rule type. The meaning of arrow form is: "the thicker and longer the arrow the more actions are able to be done in rule translation". The '->' arrow de-notates an ordinary context free grammar transcription and '===>' inserts possible integer_segment between right hand side constituents, checks the correct order of enclitics and supplies several forms of rule to make the verb phrase into a full sentence.[[BR]] |
| 18 | [[BR]] |
| 20 | G1 combining constructs (generates variants of given terminals and non-terminals): |
| 21 | order()[[BR]] |
| 22 | rhs()[[BR]] |
| 23 | first()[[BR]] |
| 24 | '''Example''' |
| 25 | {{{ |
| 26 | I will ask: clause ===> order(VBU,R,VRI) |
| 27 | }}} |
| 28 | |
| 29 | ''order()'': generates all possible permutations of its components |
| 30 | |
| 31 | ''first()'' and ''rhs()'': are employed to implant content of all the right hand side of specified non-terminal to the rule. The ''rhs(N)'' inserts all possible rewritings of non-terminal N. The resulting terms are then subject to standard constraints, enclitic checking and inter-segmentation. The ''first(N)'' secure that N is firmly tried to the beginning. |
| 32 | |
| 33 | Grammar contains several generative constructs starting with %list_* expression. This constructs defining rule templates, which automatically produce new rules for a list of the given non-terminals. |
| 34 | |
| 35 | A significant portion of the grammar is made up by verb group rules, that contains frequent repetitive constructions in given verb group. |
| 36 | |
| 37 | '''Example''': |
| 38 | |
| 39 | {{{ |
| 40 | %group verbP={ |
| 41 | V: verb_rule_schema($@,"(#1)") |
| 42 | groupflag($1,"head"), |
| 43 | VR R: verb_rule_schema($@,"(#1 #2)") |
| 44 | groupflag($1,"head"), |
| 45 | } |
| 46 | /* ctu/ptam se - I am reading/I am asking */ |
| 47 | clause ====> order(group(verbP), vi_list) |
| 48 | verb_rule_schema($@,"#2") |
| 49 | depends(getgroupflag($1,"head"), $2) |
| 50 | }}} |
| 51 | |