-
Notifications
You must be signed in to change notification settings - Fork 8
/
user-infos.js
621 lines (584 loc) · 45 KB
/
user-infos.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
var terminalsSect =
{"fr":"Terminaux","en":"Terminals",
"ex":[
{"pattern":"N(…)", "fr":["Nom",'N("joueur")'],
"en":["Noun",'N("player")'] },
{"pattern":"A(…)", "fr":["Adjectif",'A("grand")'],
"en":["Adjective",'A("tall")'] },
{"pattern":"Pro(…)","fr":["Pronom",'Pro("je")'],
"en":["Pronoun",'Pro("I")'] },
{"pattern":"D(…)", "fr":["Déterminant",'D("le")'],
"en":["Determiner",'D("the")'] },
{"pattern":"V(…)", "fr":["Verbe",'V("apprendre")'],
"en":["Verb",'V("learn")'] },
{"pattern":"Adv(…)","fr":["Adverbe",'Adv("bien")'],
"en":["Adverb",'Adv("well")'] },
{"pattern":"P(…)", "fr":["Préposition",'P("dans")'],
"en":["Preposition",'P("in")'] },
{"pattern":"C(…)", "fr":["Conjonction",'C("et")'],
"en":["Conjunction",'C("and")']},
{"pattern":"DT(…)", "fr":["Date avec <a href='#dateFr'>options</a> facultatives",'DT()'],
"en":["Date possibly with <a href='#dateEn'>options</a>",'DT()']},
{"pattern":"NO(…)", "fr":["Nombre avec <a href='#nombres'>options</a> facultatives",'NO(2)'],
"en":["Number possibly with <a href='#numbers'>options</a>",'NO(2)']},
{"pattern":'"…"', "fr":["Texte brut",'"Wow"'],
"en":["Raw text",'"Wow"']},
{"pattern":"Q(…)", "fr":["Texte brut auquel on peut ajouter des <a href='#optionsFr'>options</a>",
'Q("Bang !").tag("i")'],
"en":["Raw text to which <a href='#optionsEn'>options</a> can be added",
'Q("Bang !").tag("i")']}
]};
var syntagmesSect =
{"fr":"Syntagmes","en":"Phrases",
"ex":[
{"pattern":"NP(…)","fr":["Syntagme nominal",'NP(D("le"), N("voiture"))'],
"en":["Noun Phrase",'NP(D("the"), N("car"))']},
{"pattern":"AP(…)","fr":["Syntagme adjectival",'AP(Adv("très"), A("grand"))'],
"en":["Adjective Phrase",'AP(Adv("very"), A("tall"))']},
{"pattern":"AdvP(…)","fr":["Syntagme adverbial",'AdvP(Adv("bien"), Adv("heureusement"))'],
"en":["Adverbial Phrase",'AdvP(Adv("far"), Adv("back"))']},
{"pattern":"VP(…)","fr":["Syntagme verbal",'VP(V("prendre"), NP(D("le"), N("course")))'],
"en":["Verbal Phrase",'VP(V("enjoy"), NP(D("a"), N("meal")))']},
{"pattern":"PP(…)","fr":["Syntagme Prépositionnel",'PP(P("à"), NP(N("minuit")))'],
"en":["Prepositional Phrase",'PP(P("at"), NP(N("midnight")))']},
{"pattern":"CP(C(…)…)","fr":["Syntagme coordonné",'CP(C("et"), AP(A("vaillant")), AP(A("gentil")), AP(A("serviable")))'],
"en":["Coordinated Phrase",'CP(C("and"), AP(A("kind")), AP(A("strong")), AP(A("beautiful")))']},
{"pattern":"CP(…)","fr":[" <code>CP</code> sans <code>C</code>",'CP(AP(A("vaillant")), AP(A("gentil")), AP(A("serviable")))'],
"en":[" <code>CP</code> with no <code>C</code>",'CP(AP(A("kind")), AP(A("strong")), AP(A("beautiful")))']},
{"pattern":"CP(Q(…),…)","fr":[" <code>CP</code> avec <code>Q</code>",'CP(Q("et de plus"),AP(A("vaillant")), AP(A("gentil")), AP(A("serviable")))'],
"en":[" <code>CP</code> with <code>Q</code>",'CP(Q("and moreover"),AP(A("kind")), AP(A("strong")), AP(A("beautiful")))']},
{"pattern":"S(…)", "fr":["Phrase",'S(NP(D("le"),N("homme")), VP(V("dormir")))'],
"en":["Sentence",'S(NP(D("the"),N("man")), VP(V("sleep")))']},
{"pattern":"SP(…)","fr":["Syntagme subordonné",'SP(Pro("que"), Pro("je"), VP(V("rencontrer").t("pc")))'],
"en":["Subordinated Phrase",'SP(Adv("that"), Pro("I"), VP(V("meet").t("ps")))']},
]};
var dependentsSect =
{"fr":"Dépendents","en":"Dependencies",
"ex":[
{"pattern":"root(…)","fr":["Racine de la phrase",'root(V("aimer"),subj(Pro("lui").c("nom")))'],
"en":["Root of dependencies",'root(V("love"),subj(Pro("me").c("nom")))']},
{"pattern":"subj(…)","fr":["Sujet",'subj(N("enfant").n("p"),det(D("le")))'],
"en":["Subject",'subj(N("child").n("p"),det(D("a")))']},
{"pattern":"det(…)","fr":["Déterminant",'det(D("le"))'],
"en":["Determiner",'det(D("the"))']},
{"pattern":"comp(…)","fr":["Complément du verbe",'comp(N("fromage"),det(D("le")))'],
"en":["Verb complement",'comp(N("cheese"),det(D("the")))']},
{"pattern":"mod(…)","fr":["Modificateur",'mod(A("bon").f("su"))'],
"en":["Modifier",'mod(A("good").f("su"))']},
{"pattern":"coord(C(…),…)","fr":["Coordination",'coord(C("et"),subj(N("chat")),subj(N("chien")),subj(N("souris"))).n("p")'],
"en":["Coordination",'coord(C("and"),subj(N("cat")),subj(N("dog")),subj(N("mouse"))).n("p")']},
{"pattern":'coord(Q(""),…)',"fr":["Coordination sans C",'coord(Q(""),subj(N("chat")),subj(N("chien")),subj(N("souris"))).n("p")'],
"en":["Coordination without C",'coord(Q(""),subj(N("cat")),subj(N("dog")),subj(N("mouse"))).n("p")']},
{"pattern":'coord(Q("…"),…)',"fr":["Coordination avec Q",'coord(Q("et de plus"),subj(N("chat")),subj(N("chien")),subj(N("souris"))).n("p")'],
"en":["Coordination with Q",'coord(Q("and moreover"),subj(N("cat")),subj(N("dog")),subj(N("mouse"))).n("p")']},
]};
var optionsSect=
{"fr":"","en":"",
"ex":[
{"group":".t(…)","fr":'Temps (défaut "p")',"en":'Tense (default "p")'},
{"pattern":'.t("p")', "fr":["présent",'V("aimer").t("p")'],
"en":["present",'V("love").t("p")']},
{"pattern":'.t("b")', "fr":["infinitif (forme de base)",'V("aimer").t("b")'],
"en":["infinitive (base form)",'V("love").t("b")']},
{"pattern":'.t("bp")', "fr":["infinitif passé",'V("aimer").t("bp")'],
"en":["past infinitive",'V("love").t("bp")']},
{"pattern":'.t("b-to")',"fr":["",''],
"en":["infinitive with 'to'",'V("love").t("b-to")']},
{"pattern":'.t("bp-to")',"fr":["",''],
"en":["past infinitive with 'to'",'V("love").t("bp-to")']},
{"pattern":'.t("i")', "fr":["imparfait",'V("aimer").t("i")'],
"en":["",'']},
{"pattern":'.t("ps")', "fr":["passé simple",'V("aimer").t("ps")'],
"en":["simple past",'V("love").t("ps")']},
{"pattern":'.t("f")', "fr":["futur",'V("aimer").t("f")'],
"en":["future",'V("love").t("f")']},
{"pattern":'.t("ip")', "fr":["impératif présent",'V("aimer").t("ip").pe(2)'],
"en":["present imperative",'V("love").t("ip").pe(2)']},
{"pattern":'.t("c")', "fr":["conditionnel présent",'V("aimer").t("c")'],
"en":["conditional",'V("love").t("c")']},
{"pattern":'.t("pr")', "fr":["participe présent",'V("aimer").t("pr")'],
"en":["present participle",'V("love").t("pr")']},
{"pattern":'.t("s")', "fr":["subjonctif présent",'V("aimer").t("s")'],
"en":['present subjonctive','V("love").t("s")']},
{"pattern":'.t("si")', "fr":["subjonctif imparfait",'V("aimer").t("si")'],
"en":['past subjonctive','V("love").t("si")']},
{"pattern":'.t("pp")', "fr":["participe passé",'V("aimer").t("pp")'],
"en":["past participle",'V("love").t("pp")']},
{"group":".t(…)","fr":'Temps composés (défaut "p")',"en":''},
{"pattern":'.t("pc")', "fr":["passé composé",'V("aimer").t("pc")'],
"en":["",'']},
{"pattern":'.t("pq")', "fr":["plus-que-parfait",'V("aimer").t("pq")'],
"en":["",'']},
{"pattern":'.t("cp")', "fr":["conditionnel passé",'V("aimer").t("cp")'],
"en":["",'']},
{"pattern":'.t("fa")', "fr":["futur antérieur",'V("aimer").t("fa")'],
"en":["",'']},
{"pattern":'.t("pa")', "fr":["passé antérieur",'V("aimer").t("pa")'],
"en":["",'']},
{"pattern":'.t("spa")', "fr":["subjonctif passé",'V("aimer").t("spa")'],
"en":["",'']},
{"pattern":'.t("spq")', "fr":["subjonctif plus-que-parfait",'V("aimer").t("spq")'],
"en":["",'']},
// {"group":".perf(true)","fr":'perfect tense (ignoré en français)',
// "en":'perfect tense'},
// {"pattern":".perf(true)", "fr":["",''],
// "en":["present perfect",'V("love").perf(true)']},
// {"pattern":".perf(true)", "fr":["",''],
// "en":["past perfect",'V("love").t("ps").perf(true)']},
// {"pattern":".perf(true)", "fr":["",''],
// "en":["future perfect",'V("love").t("f").perf(true)']},
{"group":".n(…)","fr":'nombre (défaut "s")',
"en":'number (default "s")'},
{"pattern":'.n("s")', "fr":["verbe au singulier",'V("manger").n("s")'],
"en":["verb singular",'V("eat").n("s")']},
{"pattern":'.n("p")', "fr":["verbe au pluriel",'V("manger").n("p")'],
"en":["verb plural",'V("eat").n("p")']},
{"pattern":'.n("s")', "fr":["nom au singulier",'N("joueur").n("s")'],
"en":["noun singular",'N("player").n("s")']},
{"pattern":'.n("p")', "fr":["nom au pluriel",'N("joueur").n("p")'],
"en":["noun plural",'N("player").n("p")']},
{"pattern":'.n("s")', "fr":["adjectif au singulier",'A("grand").n("s")'],
"en":["adjective singular",'A("big").n("s")']},
{"pattern":'.n("p")', "fr":["adjectif au pluriel",'A("grand").n("p")'],
"en":["adjective plural",'A("big").n("p")']},
{"pattern":'.n("p")', "fr":["déterminant au pluriel",'D("le").n("p")'],
"en":["determiner plural",'D("the").n("p")']},
{"pattern":'.n("p")', "fr":["déterminant au pluriel",'D("un").n("p")'],
"en":["determiner plural",'D("a").n("p")']},
{"pattern":'.n("p")…',"fr":["déterminant possessif au pluriel",'D("mon").n("p").pe(2)'],
"en":["possessive determiner masculine (singular owner)",'D("my").n("p").g("m").ow("s")']},
{"pattern":'.n("p")…',"fr":["déterminant possessif (sujet au pluriel)",'D("notre").n("p").pe(2)'],
"en":["possessive determiner (plural owner)",'D("my").n("p").ow("p")']},
{"pattern":'.poss()', "fr":["Possessif anglais sur un N ou Q",'NP(Q("Maria").poss(),N("car"))'],
"en":["English possessive on a N or Q",'NP(N("woman").poss(),N("dress"))']},
{"group":".g(…)","fr":'Genre (défaut "m")',
"en":'Gender (default "n")'},
{"pattern":'.g("m")', "fr":["nom masculin",'N("joueur").g("m")'],
"en":["",'']},
{"pattern":'.g("m")', "fr":["nom féminin",'N("joueur").g("f")'],
"en":["",'']},
{"pattern":'.g("m")', "fr":["adjectif masculin",'A("grand").g("m")'],
"en":["",'']},
{"pattern":'.g("m")', "fr":["adjectif féminin",'A("grand").g("f")'],
"en":["",'']},
{"pattern":'.g("m")', "fr":["déterminant masculin",'D("le").g("m")'],
"en":["",'']},
{"pattern":'.g("m")', "fr":["déterminant féminin",'D("le").g("f")'],
"en":["",'']},
{"group":".pe(…)","fr":'personne (défaut 3)',
"en":'person (default 3)'},
{"pattern":".pe(1)", "fr":["1ère personne du singulier",'V("aimer").pe(1)'],
"en":["first person singular",'V("be").pe(1)']},
{"pattern":".pe(2)", "fr":["2e personne du singulier",'V("aimer").pe(2)'],
"en":["second person singular",'V("be").pe(2)']},
{"pattern":".pe(3)", "fr":["3e personne du singulier",'V("aimer").pe(3)'],
"en":["third person singular",'V("be").pe(3)']},
{"pattern":'.pe(1).n("p")', "fr":["1ère personne du pluriel",'V("aimer").pe(1).n("p")'],
"en":["first person plural",'V("be").pe(1).n("p")']},
{"pattern":'.pe(2).n("p")', "fr":["2e personne du pluriel",'V("aimer").pe(2).n("p")'],
"en":["second person plural",'V("be").pe(2).n("p")']},
{"pattern":'.pe(3).n("p")', "fr":["3e personne du pluriel",'V("aimer").pe(3).n("p")'],
"en":["third person plural",'V("be").pe(3).n("p")']},
{"pattern":'.g("f").p(1)', "fr":["déterminant (adjectif possessif) féminin",'D("mon").g("f").pe(1)'],
"en":["",'']},
{"group":".f(…)","fr":'Comparaisons',"en":'Comparison'},
{"pattern":'.f("co")', "fr":["comparatif",'A("bon").f("co")'],
"en":["comparative",'A("good").f("co")']},
{"pattern":'.f("su")', "fr":["superlatif",'A("bon").f("su")'],
"en":["superlative",'A("good").f("su")']},
{"group":".aux(…)","fr":"Changement d'auxiliaire, le défaut est donné par le lexique.",
"en":'Change of auxiliary (ignored in English)'},
{"pattern":"", "fr":["par défaut",'V("aller").t("pc")'],
"en":["",'']},
{"pattern":"", "fr":["par défaut",'V("changer").t("pc")'],
"en":["",'']},
{"pattern":'.aux("av")', "fr":["auxiliaire avoir",'V("aller").t("pc").aux("av")'],
"en":["",'']},
{"pattern":'.aux("êt")', "fr":["auxiliaire être",'V("changer").t("pc").aux("êt")'],
"en":["",'']},
{"group":"","fr":"Verbe essentiellement réflexif indiqué dans le lexique.",
"en":'Reflexive verb using <a href="#typeChange"><code>.typ({refl:true})</code></a>'},
{"pattern":'', "fr":["par défaut",'V("enfuir").t("pc")'],
"en":['.typ({refl:true})','VP(V("wash")).typ({refl:true})']},
]};
var pronomsSect={"fr":"","en":"",
"ex":[{"group":"","fr":'Pronom sujet',"en":'Pronoun as subject'},
{"pattern":".pe(1)", "fr":["1ère personne du singulier",'Pro("je").pe(1)'],
"en":["First person singular",'Pro("I").pe(1)']},
{"pattern":".pe(2)", "fr":["2e personne du singulier",'Pro("je").pe(2)'],
"en":["Second person singular",'Pro("I").pe(2)']},
{"pattern":".pe(3)", "fr":["3e personne du masculin singulier",'Pro("je").pe(3)'],
"en":["Third person masculine singular",'Pro("I").pe(3).g("m")']},
{"pattern":'.pe(3).g("f")', "fr":["3e personne du féminin singulier",'Pro("je").pe(3).g("f")'],
"en":["Third person feminine singular",'Pro("I").pe(3).g("f")']},
{"pattern":'.pe(3).g("n")', "fr":["",''],
"en":["Third person neutral singular",'Pro("I").pe(3)']},
{"pattern":'.pe(1).n("p")', "fr":["1ère personne du pluriel",'Pro("je").pe(1).n("p")'],
"en":["First person plural",'Pro("I").pe(1).n("p")']},
{"pattern":'.pe(2).n("p")', "fr":["2e personne du pluriel",'Pro("je").pe(2).n("p")'],
"en":["Second person plural",'Pro("I").pe(2).n("p")']},
{"pattern":'.pe(3).n("p")', "fr":["3e personne du pluriel",'Pro("je").pe(3).n("p")'],
"en":["Third person plural",'Pro("I").pe(3).n("p")']},
{"pattern":'.pe(3).n("p").g("f")', "fr":["3e personne du pluriel au féminin", 'Pro("je").pe(3).n("p").g("f")'],
"en":["",'']},
{"pattern":'', "fr":["'on' invariable", 'Pro("on")'],
"en":["",'']},
{"group":"","fr":'Pronom sujet accentué',"en":'Pronoun as subject itself'},
{"pattern":".pe(1)", "fr":["1ère personne du singulier",'Pro("moi").pe(1)'],
"en":["First person singular",'Pro("me").pe(1)']},
{"pattern":".pe(2)", "fr":["2e personne du singulier",'Pro("moi").pe(2)'],
"en":["Second person singular",'Pro("me").pe(2)']},
{"pattern":".pe(3)", "fr":["3e personne du singulier",'Pro("moi").pe(3)'],
"en":["Third person masculine singular",'Pro("me").pe(3).g("m")']},
{"pattern":'.pe(3).g("f")', "fr":["3e personne du féminin singulier",'Pro("moi").pe(3).g("f")'],
"en":["Third person feminine singular",'Pro("me").pe(3).g("f")']},
{"pattern":'.pe(3).g("n")', "fr":["",''],
"en":["Third person neutral singular",'Pro("me").pe(3)']},
{"pattern":'.pe(1).n("p")', "fr":["1ère personne du pluriel",'Pro("moi").pe(1).n("p")'],
"en":["First person plural",'Pro("me").pe(1).n("p")']},
{"pattern":'.pe(2).n("p")', "fr":["2e personne du pluriel",'Pro("moi").pe(2).n("p")'],
"en":["Second person plural",'Pro("me").pe(2).n("p")']},
{"pattern":'.pe(3).n("p")', "fr":["3e personne du pluriel",'Pro("moi").pe(3).n("p")'],
"en":["Third person plural",'Pro("me").pe(3).n("p")']},
{"pattern":'.pe(3).n("p").g("f")', "fr":["3e personne du pluriel au féminin", 'Pro("moi").pe(3).n("p").g("f")'],
"en":["",'']},
{"group":"","fr":'Autres types de pronoms',"en":'Other types of pronouns'},
{"pattern":'.pe(3).n("s")', "fr":["Pronom possessif",'Pro("mien").pe(3).n("s")'],
"en":["Singular owner",'Pro("mine").pe(3).n("s").ow("s")']},
{"pattern":'.pe(3).n("p")', "fr":["À soi",'Pro("nôtre").pe(3).n("p")'],
"en":["Plural owner",'Pro("mine").pe(2).n("p").ow("p")']},
{"pattern":'.pe(3).n("p")', "fr":["Moi réflexif",'Pro("moi*refl").pe(3).n("p")'],
"en":["Reflexive",'Pro("myself").pe(3).n("p")']},
{"pattern":'.pe(3).n("p")', "fr":["Me réflexif",'Pro("me*refl").pe(3).n("p")'],
"en":["",'']},
{"pattern":'.pe(3).n("p")', "fr":["Me complément d'objet indirect",'Pro("me*coi").pe(3).n("p")'],
"en":["",'']},
]};
var formatSect={"fr":"","en":"",
"ex":[
{"group":".b(…)","fr":'ajouter avant',"en":'add before'},
{"pattern":'.b("-")', "fr":["Ajouter un tiret avant",'N("homme").b("-")'],
"en":["Add a dash before",'N("man").b("-")']},
{"pattern":'.b("*")', "fr":["Ajouter une étoile avant",'N("homme").b("*")'],
"en":["Add a star before",'N("man").b("*")']},
{"group":".a(…)","fr":'ajouter après',"en":'add after'},
{"pattern":'.a(".")', "fr":["Ajouter un point après",'N("homme").a(".")'],
"en":["Add a dash before",'N("man").b("-")']},
{"pattern":'.a("!")', "fr":["Ajouter point d'exclamation après",'N("homme").a("!")'],
"en":["Add an exclamation point after",'N("man").a("!")']},
{"pattern":'.a(";")', "fr":["Ajouter point virgule après",'N("homme").a(";")'],
"en":["Add a semi-colon after",'N("man").a(";")']},
{"group":".ba(…)","fr":'entourer',"en":'wrap with'},
{"pattern":'.ba("(")', "fr":["entourer de parenthèses",'N("homme").ba("(")'],
"en":["Wrap within parentheses",'N("man").ba("(")']},
{"pattern":'.ba("[")', "fr":["entourer de crochets",'N("homme").ba("[")'],
"en":["Wrap within brackets",'N("man").ba("[")']},
{"pattern":'.ba("*")', "fr":["entourer d'étoiles",'N("homme").ba("*")'],
"en":["Wrap within stars",'N("man").ba("*")']},
{"pattern":'.ba("*").en("(")', "fr":["entourer de plusieurs symboles",'N("homme").ba("*").ba("(")'],
"en":["Wrap within many symbols",'N("man").ba("*").ba("(")']},
{"group":"","fr":'',"en":''},
{"pattern":'.lier()', "fr":["lier le suivant par un trait d'union",'VP(V("lier").t("ip").pe(2).lier(),Pro("le"))'],
"en":["Combine next with a dash",'NP(NO(1).nat().lier(),P("of").lier(),D("a").lier(),N("kind"))']},
{"group":".cap(…)","fr":'Lettres capitales',"en":'Capitalisation'},
{"pattern":'.cap()', "fr":["Mettre la première lettre en majuscule",'N("joueur").cap()'],
"en":["Capitalize first letter",'N("player").cap()']},
{"pattern":'.cap("tit")',
"fr":["Majuscules de titre (ignoré en français)",'NP(N("joueur"),P("de"),N("équipe")).cap("tit")'],
"en":["Title capitalization",'NP(N("player"),P("on"),D("the"),N("team")).cap("tit")']},
{"group":".tag(…)","fr":"balise HTML","en":'HTML tag'},
{"pattern":'.tag(<em>nom</em>,<em>{attributs}</em>)',
"fr":["italique souligné",'N("joueur").tag("i",{"style":"text-decoration:underline"})'],
"en":["underline italics",'N("player").tag("i",{"style":"text-decoration:underline"})']},
{"pattern":'',
"fr":["hyperlien",'N("joueur").tag("a",{"href":"http://www.google.com"})'],
"en":["hyperlink",'N("player").tag("a",{"href":"http://www.google.com"})']},
{"pattern":'',
"fr":["combinaison de balises",'N("maison").tag("b").tag("i")'],
"en":["combining tags",'N("house").tag("b").tag("i")']},
]};
var nPmods={"fr":'',"en":'',
"ex": [
{"group":"","fr":"Placement de l'adjectif ou de l'adverbe (dépendant de la langue)",
"en":"Adjective or adverb position (language dependent)"},
{"pattern":"", "fr":["Adjectif: par défaut",'NP(D("le"),A("petit"),N("jouet"))'],
"en":["Adjective: by default",'NP(D("the"),A("small"),N("toy"))']},
{"pattern":"", "fr":["Adjectif: par défaut",'NP(D("le"),A("bleu"),N("jouet"))'],
"en":["Adjective: by default",'NP(D("the"),N("toy"),A("blue"))']},
{"pattern":"", "fr":["Adverbe: par défaut",'VP(V("aller"),Adv("bien")).t("pc")'],
"en":["Adverb: by default",'VP(V("perform"),Adv("well")).typ({perf:true})']},
{"pattern":'.pos("pre")', "fr":["Adjectif:pré-posé",'NP(D("le"),A("bleu").pos("pre"),N("jouet"))'],
"en":["",'']},
{"pattern":'.pos("post")', "fr":["Adjectif:postposé",'NP(D("le"),A("petit").pos("post"),N("jouet"))'],
"en":["",'']},
{"pattern":'.pos("post")', "fr":["Adverbe:postposé",'VP(V("aller"),Adv("bien").pos("post")).t("pc")'],
"en":["Adverb: postpositive",'VP(V("perform"),Adv("well").pos("post")).typ({perf:true})']},
{"group":".pro()","fr":"Pronominalisation","en":"Pronominalisation"},
{"pattern":"", "fr":["du sujet",'S(NP(D("le"),N("joueur")).pro(),VP(V("jouer")))'],
"en":["of the subject",'S(NP(D("the"),N("player")).pro(),VP(V("play")))']},
{"pattern":"", "fr":["de l'objet direct sur",
'S(Pro("je").pe(1),\n\
VP(V("aimer"),NP(D("le"),N("pomme")).pro()))'],
"en":["of the direct object",
'S(Pro("I").pe(1),\n\
VP(V("love"),NP(D("a"),N("apple").g("n")).pro()))']},
{"pattern":"",
"fr":["de l'objet indirect sur <code>PP</code>",
'S(Pro("je").pe(1),\n\
VP(V("aller"),\n\
PP(P("vers"),NP(D("le"),N("maison"))).pro()))'],
"en":["of the indirect object",
'S(Pro("I").pe(1),\n\
VP(V("go"),\n\
PP(P("to"),NP(D("a"),N("house").g("n")).pro())))']},
]};
var sentType={"fr":'',"en":'',
"ex": [
{"pattern":".typ({neg:true})",
"fr":["Négation",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({neg:true})'],
"en":["Negation",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({neg:true})']},
{"pattern":'.typ({neg:"..."})',
"fr":["Négation spéciale",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({neg:"plus"})'],
"en":["",'']},
{"pattern":".typ({pas:true})",
"fr":["Passif",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({pas:true})'],
"en":["Passive",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({pas:true})']},
{"pattern":".typ({perf:true})",
"fr":['Perfect <i>Ignoré</i>','S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({perf:true})'],
"en":["Perfect",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({perf:true})']},
{"pattern":".typ({prog:true})",
"fr":["Progressif",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({prog:true})'],
"en":["Progressive",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({prog:true})']},
{"pattern":".typ({refl:true})",
"fr":["Réflexif",'S(NP(D("le"),N("chat")),\n VP(V("laver"))).typ({refl:true})'],
"en":["Reflexive",'S(NP(D("the"),N("cat")),\n VP(V("wash"))).typ({refl:true})']},
{"pattern":".typ({exc:true})",
"fr":["Exclamatif",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({exc:true})'],
"en":["Exclamative",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({exc:true})']},
{"pattern": ".typ({\"maje\":True})",
"fr": ["Pluriel de majesté",
'S(Pro("moi").pe(1).g("f"),VP(V("être"),AP(A("gentil"),\n PP(P("avec"),NP(D("mon").pe(2),N("soeur")))))\n).typ({"maje":true})',],
"en": ["Majestic plural",
'S(Pro("me").pe(1).c("nom"),\n VP(V("love"),NP(D("my").pe(1).ow("s").maje(false),N("mouse")))\n).typ({"maje":true})']},
{"pattern": "( .maje(false)\n ).typ({\"maje\":true})",
"fr":["Pluriel de majesté, annulé localement pour <code>D</code> ou <code>Pro</code>",
'S(Pro("moi").pe(1).g("f"),VP(V("être"),AP(A("gentil"),\n PP(P("avec"),NP(D("mon").pe(2).maje(false),N("soeur")))))\n).typ({"maje":true})'],
"en":["Majestic plural, locally overridden for <code>D</code> or <code>Pro</code>",
'S(Pro("me").pe(1).c("nom"),\n VP(V("love"),NP(D("my").pe(1).ow("s").maje(false),N("mouse")))\n).typ({"maje":true})'],
},
{"pattern":".typ({contr:true})",
"fr":["Contraction (ignorée en français)",
'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris"))))\n .typ({neg:true,contr:true})'],
"en":["Contraction",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse"))))\n .typ({neg:true,contr:true})']},
{"group":'.typ({mod:"..."})',"fr":"Modalité","en":"Modality"},
{"pattern":'.typ({mod:"poss"})',
"fr":["Possibilité",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({mod:"poss"})'],
"en":["Possibility",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({mod:"poss"})']},
{"pattern":'.typ({mod:"perm"})',
"fr":["Permission",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({mod:"perm"})'],
"en":["Permission",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({mod:"perm"})']},
{"pattern":'.typ({mod:"nece"})',
"fr":["Nécessité",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({mod:"nece"})'],
"en":["Necessity",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({mod:"nece"})']},
{"pattern":'.typ({mod:"obli"})',
"fr":["Obligation",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({mod:"obli"})'],
"en":["Obligation",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({mod:"obli"})']},
{"pattern":'.typ({mod:"will"})',
"fr":["Volonté",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({mod:"will"})'],
"en":["Willingness",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({mod:"will"})']},
{"group":'.typ({int:"..."})',"fr":"Interrogation","en":"Interrogation"},
{"pattern":'.typ({int:"yon"})',
"fr":["Interrogative (oui/non)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"yon"})'],
"en":["Interrogative (yes/no)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"yon"})']},
{"pattern":'.typ({int:"wos"})',
"fr":["Interrogative (sujet humain?)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"wos"})'],
"en":["Interrogative (who human?)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"wos"})']},
{"pattern":'.typ({int:"was"})',
"fr":["Interrogative (sujet?)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"was"})'],
"en":["Interrogative (who?)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"was"})']},
{"pattern":'.typ({int:"wod"})',
"fr":["Interrogative (qui est l'objet)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"wod"})'],
"en":["Interrogative (who is the object)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"wod"})']},
{"pattern":'.typ({int:"wad"})',
"fr":["Interrogative (quoi est l'objet)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"wad"})'],
"en":["Interrogative (what is the object)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"wad"})']},
{"pattern":'.typ({int:"woi"})',
"fr":["Interrogative (à qui l'objet humain)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"woi"})'],
"en":["Interrogative (to whom the object human)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"woi"})']},
{"pattern":'.typ({int:"wai"})',
"fr":["Interrogative (à qui l'objet)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"wai"})'],
"en":["Interrogative (to whom the object)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"wai"})']},
{"pattern":'.typ({int:"whe"})',
"fr":["Interrogative (où est l'action)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"whe"})'],
"en":["Interrogative (where is the action)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"whe"})']},
{"pattern":'.typ({int:"why"})',
"fr":["Interrogative (pourquoi)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"why"})'],
"en":["Interrogative (why)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"why"})']},
{"pattern":'.typ({int:"whn"})',
"fr":["Interrogative (quand)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"whn"})'],
"en":["Interrogative (when)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"whn"})']},
{"pattern":'.typ({int:"how"})',
"fr":["Interrogative (comment est l'action)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"how"})'],
"en":["Interrogative (how is the action)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"how"})']},
{"pattern":'.typ({int:"muc"})',
"fr":["Interrogative (combien est l'action)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"muc"})'],
"en":["Interrogative (how much is the action)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"muc"})']},
{"pattern":'.typ({int:"tag"})',
"fr":["N'est-ce pas (demande confirmation)",'S(NP(D("le"),N("chat")),\n VP(V("aimer"),NP(D("le"),N("souris")))).typ({int:"tag"})'],
"en":["Question tag (confirmation?)",'S(NP(D("the"),N("cat")),\n VP(V("love"),NP(D("the"),N("mouse")))).typ({int:"tag"})']},
]};
var dateCreation={"fr":"Création d'une date","en":"Date creation",
"ex":[
{"pattern":'DT()',"fr":["Date courante",'DT()'],"en":["Current date",'DT()']},
{"pattern":'DT(new Date(...))',"fr":["Date passée",'DT(new Date("2014-11-21T21:00:00"))'],
"en":["Past date",'DT(new Date("2014-11-21T21:00:00"))']},
{"pattern":'DT("YYYY-MM-DDTHH:mm(:ss)+TZ")',
"fr":["Heure selon le fuseau horaire choisi en entrée, heure locale en sortie",
'DT("2015-01-02T00:00:00+00:00")'],
"en":["Hour according to the given timezone, local time as output",
'DT("2015-01-02T00:00:00+00:00")']},
{"pattern":'DT("YYYY-MM-DDTHH:mm(:ss)")',
"fr":["Par défaut, le fuseau horaire en entrée est le fuseau horaire du système (sous Firefox) alors que pour Safari ce sera l'heure GMT par défaut, dans tous les cas, c'est l'heure locale en sortie",
'DT("2015-01-02T00:00:00+00:00")'],
"en":["By default, the input timezone is the timezone of the system (with Firefox), but it is GMT with Safari; local time as output",
'DT("2015-01-02T00:00:00+00:00")']},
{"pattern":'DT("YYYY-MM-DD")',
"fr":["Si l'heure n'est pas indiquée, ce sera minuit GMT et l'heure locale en sortie",
'DT("2015-01-02")'],
"en":["When the hour is missing, it will midnight GMT but local time as output",
'DT("2015-01-02")']},
{"pattern":'DT("YYYY/MM/DD HH:mm(:ss) +ZZZZ")',
"fr":["Heure selon le fuseau horaire choisi en entrée, heure locale en sortie",
'DT("2015/01/02 00:00:00 +0000")'],
"en":["Hour according to the given timezone, local time as output",
'DT("2015/01/02 00:00:00 +0000")']},
{"pattern":'DT("YYYY/MM/DD HH:mm(:ss)")',
"fr":["Par défaut, le fuseau horaire en entrée est le fuseau horaire du système, heure locale en sortie",
'DT("2015/01/02 00:00:00")'],
"en":["By default, the input timezone is the system timezone, local time as output",
'DT("2015/01/02 00:00:00")']},
{"pattern":'DT("YYYY/MM/DD")',
"fr":["Si l'heure n'est pas indiquée, ce sera minuit heure système et l'heure locale en sortie",
'DT("2015/01/02")'],
"en":["When the hour is missing, it will midnight system time but local time as output",
'DT("2015/01/02")']},
]};
var dateOption={"fr":"Formatage d'une date (défaut <code>.nat()</code>)",
"en":"Date formatting (default <code>.nat()</code>)",
"ex":[
{"pattern":'', "fr":["en lettres, par défaut",'DT(new Date())'],
"en":["as words, by default",'DT(new Date())']},
{"pattern":'.nat(false)',"fr":["en chiffres",'DT(new Date()).nat(false)'],
"en":["as digits",'DT(new Date()).nat(false)']},
{"group":'.dOpt({year: , month: , date: , day: , hour: , minute: , second: , nat:, det:, rtime:})',
"fr":"Contrôle de l'affichage de chacun des éléments de la date",
"en":"Control over the display of date components"},
{"pattern":'.dOpt(..)',"fr":["Heure seulement",'DT().dOpt({year: false, month: false, date: false, day: false})'],
"en":["Time only",'DT().dOpt({year: false, month: false, date: false, day: false})']},
{"pattern":'{nat:false}',
"fr":["Affichage de l'heure et des minutes (en chiffres)",'DT().dOpt({year: false, month: false, date: false,\n day: false, second: false, nat:false})'],
"en":["Display hour and minutes as digits",'DT().dOpt({year: false, month: false, date: false,\n day: false, second: false, nat:false})']},
{"pattern":'{det:false}',
"fr":["Non affichage du déterminant de la date",'DT(new Date()).dOpt({det: false})'],
"en":["Do not display determiner",'DT(new Date()).dOpt({det: false})']},
{"pattern":'{rtime:true}',
"fr":["Date relative par rapport à aujourd'hui",'DT(new Date()).dOpt({rtime: true})'],
"en":["Relative date compared with today",'DT(new Date()).dOpt({rtime: true})']},
{"pattern":'{rtime:".." or Date}',
"fr":["Date relative après une autre",'DT("2021/09/01").dOpt({rtime: "2021/08/27",\n hour:false,minute:false,second:false});'],
"en":["Relative date after another one",'DT("2021/09/01").dOpt({rtime: "2021/08/27",\n hour:false,minute:false,second:false});']},
{"pattern":'{rtime:".." or Date}',
"fr":["Date relative avant une autre date",'DT("2021/09/01").dOpt({rtime: new Date("2021/09/10"),\n hour:false,minute:false,second:false});'],
"en":["Relative date before another one",'DT("2021/09/01").dOpt({rtime: new Date("2021/09/10"),\n hour:false,minute:false,second:false});']},
]};
var numberFormat={"fr":"Formatage d'un nombre","en":"Number formatting",
"ex":[
{"pattern":"{mprecision:..}","fr":["arrondi",'NO(1.847584).dOpt({mprecision: 0})'],
"en":["rounding",'NO(1.847584).dOpt({mprecision: 0})']},
{"pattern":"{mprecision:..}","fr":["maximum 4 décimales",'NO(1.847584).dOpt({mprecision: 4})'],
"en":["4 decimal rounding",'NO(1.847584).dOpt({mprecision: 4})']},
{"pattern":"{raw:false}","fr":["nombre avec formattage",'NO("1.847584").dOpt({raw: false})'],
"en":["number with formatting",'NO("1.847584").dOpt({raw: false})']},
{"pattern":"{raw:true}","fr":["nombre sans formattage",'NO("1023.84").dOpt({raw: true})'],
"en":["raw number without formatting",'NO("1023.84").dOpt({raw: true})']},
{"pattern":"{nat:true}","fr":["nombre en toutes lettres",'NO("125").dOpt({nat: true})'],
"en":["number in words",'NO("125").dOpt({nat: true})']},
{"pattern":".nat()", "fr":["nombre en toutes lettres",'NO("42").nat()'],
"en":["number in words",'NO("42").nat()']},
{"pattern":"{ord:true}","fr":["nombre ordinal",'NO("10").dOpt({ord: true})'],
"en":["ordinal number",'NO("10").dOpt({ord: true})']},
{"pattern":"{rom:true}","fr":["nombre romain",'NO("267").dOpt({rom: true})'],
"en":["Roman number",'NO("267").dOpt({rom: true})']},
]};
var numberAgreement={"fr":"Accord du nom selon le nombre","en":"Noun agreement in number",
"ex":[{"pattern":"","fr":["avec zéro",'NP(NO(0), N("avion"))'],
"en":["with zero",'NP(NO(0), N("plane"))']},
{"pattern":"","fr":["avec un entier",'NP(NO(1), N("avion"))'],
"en":["with an integer",'NP(NO(1), N("plane"))']},
{"pattern":"","fr":["avec un entier",'NP(NO(2), N("avion"))'],
"en":["with an integer",'NP(NO(2), N("plane"))']},
{"pattern":"","fr":["avec un réel",'NP(NO(0.24), N("livre"))'],
"en":["with a real",'NP(NO(0.24), N("pound"))']},
{"pattern":"","fr":["avec un réel",'NP(NO(2.94), N("livre"))'],
"en":["with a real",'NP(NO(2.94), N("pound"))']},
{"pattern":"","fr":["avec un ordinal",'NP(NO(1).dOpt({"ord":true}),N("station"))'],
"en":["with an ordinal",'NP(NO(1).dOpt({"ord":true}),N("station"))']},
{"pattern":"","fr":["accord de l'adjectif",'NP(NO(2),A("rouge"), N("avion"))'],
"en":["",'']},
]};
var pomme,pommes,la_pomme,apple,the_apple,apples,gars,boy;
var cloneUse={"fr":"Illustration de l'utilisation de <code>.clone()</code>",
"en":"Simple example of use of <code>.clone()</code>",
"ex":[
{"pattern":"","fr":["déclaration",'pomme = N("pomme")'],
"en":["declaration",'apple = N("apple")']},
{"pattern":"","fr":["déclaration",'gars = NP(D("le"),N("garçon"))'],
"en":["declaration",'boy = NP(D("the"),N("boy"))']},
{"pattern":"","fr":["modification",'pomme.n("p")'],
"en":["modification",'apple.n("p")']},
{"pattern":"","fr":["effet de bord visible",'pomme'],
"en":["side-effect occurred",'apple']},
{"pattern":"","fr":["redéclaration",'pomme = N("pomme")'],
"en":["redeclaration",'apple = N("apple")']},
{"pattern":"","fr":["sauve l'original",'pommes=pomme.clone().n("p")'],
"en":["save the original",'apples=apple.clone().n("p")']},
{"pattern":"","fr":["original a bien été sauvé",'pomme'],
"en":["original was saved",'apple']},
{"pattern":"","fr":["Autre exemple, plus subtil",'la_pomme = NP(D("le"),pomme)'],
"en":["Another example, more devious",'the_apple = NP(D("the"),apple)']},
{"pattern":"","fr":["clone est utile pour la réutilisation",
'S(la_pomme.clone().a(","),gars,VP(V("manger"),la_pomme.clone().pro()))'],
"en":["close is useful for reuse",
'S(the_apple.clone().a(","),boy,VP(V("eat"),the_apple.clone().pro()))']},
{"pattern":"","fr":["exemple précédent sans clone; <b>mauvais résultat</b> car <code>.pro()</code> a modifié <code>pomme</code> avant sa réalisation",
'S(la_pomme.a(","),gars,VP(V("manger"),la_pomme.pro())).b("*")'],
"en":["previous example without clone; <b>bad result</b> because <code>.pro()</code> modified <code>apple</code> before its realization",
'S(the_apple.a(","),boy,VP(V("eat"),the_apple.pro())).b("*")']},
]};
var pommeF,pommeFF,appleF,appleAF;
var functionUse={"fr":"Fonctions pour la réutilisation d'expression",
"en":"Functions for expression reuse",
"ex":[
{"pattern":"","fr":["fonction",'pommeF = function(n){return NP(D("un"),N("pomme").n(n||"s"))}'],
"en":["fonction",'appleF = function(n){return NP(D("a"),N("apple").n(n||"s"))}']},
{"pattern":"","fr":["fonction fléchée",'pommeFF = (n)=>NP(D("un"),N("pomme").n(n||"s"))'],
"en":["arrow function",'appleAF = (n)=>NP(D("a"),N("apple").n(n||"s"))']},
{"pattern":"","fr":["appel de fonction",'pommeFF("p")'],
"en":["function call",'appleAF("p")']},
{"pattern":"","fr":["appel de fonction",'pommeFF()'],
"en":["function call",'appleAF()']},
]};
var addUse={"fr":"Illustration de l'utilisation de <code>.add(..)</code> <i>en utilisant les variables de la section <code>.clone()</code></i>",
"en":"Simple example of use of <code>.add(..)</code> <i>using variables of the <code>.clone()</code> section</i>",
"ex":[
{"pattern":"","fr":["déclaration",'pomme = NP(D("le"),N("pomme"))'],
"en":["declaration",'apple = NP(D("the"),N("apple"))']},
{"pattern":"","fr":["ajout à un syntagme vide",'S().add(pomme)'],
"en":["add to an empty phrase",'S().add(apple)']},
{"pattern":"","fr":["ajouts à un syntagme existant",
'CP(C("et"),NP(D("le"),N("fruit"))).add(pomme).add(gars)'],
"en":["add to an existing phrase",
'CP(C("and"),NP(D("a"),N("fruit"))).add(apple).add(boy)']},
{"pattern":"","fr":["ajout avec position",'S(VP().add(V("aimer")).add(pomme)).add(gars,0)'],
"en":["add with position",'S(VP().add(V("love")).add(apple)).add(boy,0)']},
]};