Rev 954 | Rev 4158 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !if $wims_read_parm!=slib_header |
2 | !goto proc |
||
3 | !endif |
||
954 | reyssat | 4 | slib_title=Transform a French noun into definite form |
20 | reyssat | 5 | slib_parms=1\ |
6 | ,the noun phrase |
||
7 | slib_author=Gang Xiao |
||
8 | slib_out=the transformed phrase |
||
9 | slib_example= un avion \ |
||
10 | une\ |
||
11 | des |
||
12 | |||
3307 | bpr | 13 | !exit |
14 | |||
20 | reyssat | 15 | :proc |
16 | slib_inp=!word 1 of $wims_read_parm |
||
17 | slib_out= |
||
18 | !if $slib_inp=$empty |
||
19 | !exit |
||
20 | !endif |
||
21 | slib_1=!word 1 of $slib_inp |
||
22 | !if $slib_1 notwordof de des du un une |
||
23 | slib_out=$slib_inp |
||
24 | !exit |
||
25 | !endif |
||
26 | |||
27 | slib_2=!word 2 of $slib_inp |
||
28 | slib_c=!char 1 of $slib_2 |
||
29 | slib_2c=!word 2 to -1 of $slib_inp |
||
30 | slib_3c=!word 3 to -1 of $slib_inp |
||
31 | |||
32 | !if $slib_1=de |
||
33 | slib_out=$slib_2c |
||
34 | !exit |
||
35 | !endif |
||
36 | |||
37 | !if $slib_1=des |
||
38 | slib_out=les $slib_2c |
||
39 | !exit |
||
40 | !endif |
||
41 | |||
42 | !if $slib_1 iswordof du un |
||
43 | !read slib/lang/frapostrophe le $slib_2c |
||
44 | !exit |
||
45 | !endif |
||
46 | |||
47 | !if $slib_1=une |
||
48 | !read slib/lang/frapostrophe la $slib_2c |
||
49 | !exit |
||
50 | !endif |
||
51 |