Rev 13715 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=gapfill |
23 | reyssat | 2 | textarea="data explain" |
13715 | obado | 3 | iEdit="explain" |
23 | reyssat | 4 | |
13704 | obado | 5 | :Type the property of an object chosen randomly from a list |
23 | reyssat | 6 | |
7 | <p> |
||
13704 | obado | 8 | An item is randomly selected from a list and you are asked to type its property. |
5354 | obado | 9 | </p><p> |
13704 | obado | 10 | To build an exercise with this model, just give the list of objects and their properties. |
5354 | obado | 11 | </p> |
15179 | lemaire | 12 | <p>Author of the model: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p> |
23 | reyssat | 13 | |
14 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
15 | |||
11544 | obado | 16 | Remove the above header if you destroy the model tags! (The lines starting |
17 | with a ':'.) Otherwise the exercise might not be taken back by Createxo. |
||
23 | reyssat | 18 | |
11544 | obado | 19 | :%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%% |
23 | reyssat | 20 | |
13704 | obado | 21 | :\title{Typed property} |
5147 | bpr | 22 | :\author{XIAO, Gang} |
8002 | bpr | 23 | :\email{qualite@wimsedu.info} |
5724 | bpr | 24 | :\credits{} |
23 | reyssat | 25 | |
13714 | obado | 26 | :Width of the field to type |
13704 | obado | 27 | Sufficient space must be provided for the longest property. |
23 | reyssat | 28 | \integer{size=20} |
29 | |||
13477 | obado | 30 | :Main data. |
13704 | obado | 31 | <p>Define an object by line, first the name of the object to be displayed, then its property as it should be typed, separated by a comma. |
5354 | obado | 32 | </p><p> |
13704 | obado | 33 | You can declare synonyms of properties to be recognized, separated by vertical lines (example: dark|gloomy).</p> |
23 | reyssat | 34 | \matrix{data= |
13704 | obado | 35 | gift, gifts |
36 | pebble, pebbles |
||
37 | horse, horses |
||
38 | sky, skies |
||
39 | hole, holes |
||
40 | child, children |
||
41 | man, men |
||
42 | woman, women |
||
43 | mouse, mice |
||
44 | tooth, teeth |
||
45 | foot, feet |
||
23 | reyssat | 46 | } |
47 | |||
13714 | obado | 48 | :Type of response analysis |
13704 | obado | 49 | The <span class="tt">case</ span> and <span class="tt">nocase</ span> types are mostly suitable for language applications. |
50 | In other cases, prefer <span class="tt"> atext </span>. |
||
51 | \text{atype=item(1,case (no error tolerance), |
||
13714 | obado | 52 | nocase (tolerate lowercase / uppercase), |
53 | atext (ignore plural / singular and articles))} |
||
23 | reyssat | 54 | |
11544 | obado | 55 | :Embraced random items |
5797 | bpr | 56 | $embraced_randitem |
11544 | obado | 57 | \text{accolade=item(1,1 yes, |
58 | 2 no)} |
||
5797 | bpr | 59 | |
11544 | obado | 60 | :%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%% |
5797 | bpr | 61 | \text{accolade=wims(word 1 of \accolade)} |
23 | reyssat | 62 | \text{data=randomrow(\data)} |
63 | \text{name=\data[1]} |
||
64 | \text{prop=\data[2]} |
||
65 | \text{atype=wims(word 1 of \atype)} |
||
66 | |||
11544 | obado | 67 | :%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 68 | |
13704 | obado | 69 | :Instructions |
70 | To evoke the picked object, write <span class="tt">\name</span>. |
||
23 | reyssat | 71 | $embraced_randitem |
72 | \text{explain= |
||
13704 | obado | 73 | Type the plural of the word <span style="color:blue;font-weight:bold;">\name</span>: |
23 | reyssat | 74 | } |
75 | |||
11544 | obado | 76 | :%% Do not modify |
5797 | bpr | 77 | \text{explain=\accolade=1 ? wims(embraced randitem \explain)} |
23 | reyssat | 78 | |
13704 | obado | 79 | ::One does not need to modify the statement directly in general. |
23 | reyssat | 80 | |
4780 | obado | 81 | \statement{ |
13714 | obado | 82 | <label for="reply1" class="oef_explain">\explain</label> |
83 | <span class="oef_input"> |
||
84 | \embed{r1,\size |
||
85 | autocomplete="off"}. |
||
86 | </span> |
||
23 | reyssat | 87 | } |
88 | |||
11544 | obado | 89 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5 |
23 | reyssat | 90 | |
13704 | obado | 91 | \answer{The answer}{\prop}{type=\atype} |
23 | reyssat | 92 |