Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1065 lines (940 loc) · 33 KB
/
Copy pathindex.html
File metadata and controls
1065 lines (940 loc) · 33 KB
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
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reported Questions — English Hub</title>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&family=JetBrains+Mono:wght@300;400&display=swap" rel="stylesheet">
<style>
:root {
--bg: #faf8f4;
--ink: #1c1612;
--mid: #5a5040;
--light: #9a8c78;
--rule: #d8d0c0;
--accent: #2a4a6b;
--accent-pale: #e8eef5;
--correct: #1e4d2b;
--correct-pale: #edf5f0;
--wrong: #7a1f1f;
--wrong-pale: #fdf0f0;
--note: #6b4a00;
--note-pale: #fdf6e3;
--tag-wh: #2a4a6b;
--tag-yn: #4a2a6b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--ink);
font-family: 'Source Serif 4', Georgia, serif;
font-weight: 300;
line-height: 1.75;
font-size: 16px;
}
/* TOP BAR */
.topbar {
background: var(--ink);
color: #c8b89a;
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
letter-spacing: 3px;
text-transform: uppercase;
padding: 10px 40px;
display: flex;
justify-content: space-between;
align-items: center;
}
.topbar a {
color: #c8b89a;
text-decoration: none;
opacity: 0.6;
transition: opacity 0.2s;
}
.topbar a:hover { opacity: 1; }
/* HERO */
.hero {
padding: 60px 40px 48px;
max-width: 860px;
margin: 0 auto;
border-bottom: 1px solid var(--rule);
}
.hero-kicker {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
letter-spacing: 4px;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 14px;
}
.hero-title {
font-family: 'Playfair Display', Georgia, serif;
font-size: 48px;
font-weight: 700;
line-height: 1.1;
margin-bottom: 16px;
letter-spacing: -0.5px;
}
.hero-sub {
font-size: 17px;
color: var(--mid);
max-width: 560px;
line-height: 1.65;
font-style: italic;
}
/* LAYOUT */
.content {
max-width: 860px;
margin: 0 auto;
padding: 0 40px 80px;
}
/* SECTIONS */
.section {
padding: 44px 0;
border-bottom: 1px solid var(--rule);
}
.section:last-child { border-bottom: none; }
.section-number {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--light);
margin-bottom: 6px;
}
.section-title {
font-family: 'Playfair Display', Georgia, serif;
font-size: 28px;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
/* PROSE */
p {
margin-bottom: 16px;
color: var(--ink);
}
/* COMPARISON TABLE */
.compare-block {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
border: 1px solid var(--rule);
margin: 24px 0;
overflow: hidden;
border-radius: 2px;
}
.compare-col {
padding: 20px 24px;
}
.compare-col:first-child {
border-right: 1px solid var(--rule);
background: rgba(0,0,0,0.02);
}
.compare-header {
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
letter-spacing: 3px;
text-transform: uppercase;
margin-bottom: 14px;
padding-bottom: 8px;
border-bottom: 1px solid var(--rule);
}
.compare-col:first-child .compare-header { color: var(--wrong); }
.compare-col:last-child .compare-header { color: var(--correct); }
.compare-example {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
line-height: 1.8;
color: var(--mid);
margin-bottom: 8px;
}
.compare-example .label {
font-size: 9px;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--light);
display: block;
margin-bottom: 2px;
font-family: 'JetBrains Mono', monospace;
}
.compare-example .form {
color: var(--ink);
font-size: 14px;
}
/* RULE CARDS */
.rule-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin: 24px 0;
}
@media (max-width: 600px) {
.rule-grid { grid-template-columns: 1fr; }
.compare-block { grid-template-columns: 1fr; }
.hero-title { font-size: 34px; }
}
.rule-card {
border: 1px solid var(--rule);
padding: 20px 22px;
position: relative;
}
.rule-card::before {
content: attr(data-num);
position: absolute;
top: -1px; right: 16px;
font-family: 'Playfair Display', serif;
font-size: 60px;
color: rgba(0,0,0,0.04);
line-height: 1;
font-weight: 700;
}
.rule-card-title {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 10px;
}
.rule-card-body {
font-size: 14px;
color: var(--mid);
line-height: 1.6;
margin-bottom: 12px;
}
.rule-card-example {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
background: var(--accent-pale);
padding: 8px 12px;
color: var(--accent);
line-height: 1.6;
border-left: 2px solid var(--accent);
}
/* TENSE TABLE */
.tense-table {
width: 100%;
border-collapse: collapse;
margin: 24px 0;
font-size: 14px;
}
.tense-table th {
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--light);
padding: 10px 16px;
text-align: left;
border-bottom: 2px solid var(--ink);
font-weight: 400;
}
.tense-table td {
padding: 11px 16px;
border-bottom: 1px solid var(--rule);
vertical-align: top;
}
.tense-table tr:last-child td { border-bottom: none; }
.tense-table .direct-col {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
color: var(--mid);
}
.tense-table .reported-col {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
color: var(--accent);
}
.tense-table .shift-col {
font-size: 13px;
color: var(--ink);
font-weight: 400;
}
.arrow { color: var(--light); font-size: 11px; padding: 0 8px; }
/* TYPE TAG */
.type-tag {
display: inline-block;
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
letter-spacing: 2px;
text-transform: uppercase;
padding: 2px 7px;
border-radius: 2px;
margin-left: 8px;
vertical-align: middle;
}
.tag-wh { background: #e8eef5; color: var(--tag-wh); }
.tag-yn { background: #f0e8f5; color: var(--tag-yn); }
/* NOTE BOX */
.note-box {
background: var(--note-pale);
border-left: 3px solid var(--note);
padding: 16px 20px;
margin: 20px 0;
font-size: 14px;
color: var(--note);
line-height: 1.65;
}
.note-box strong {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
letter-spacing: 2px;
text-transform: uppercase;
display: block;
margin-bottom: 6px;
}
/* ===== EXERCISES ===== */
.exercise-block {
background: white;
border: 1px solid var(--rule);
padding: 28px 30px;
margin: 28px 0;
}
.ex-header {
display: flex;
align-items: baseline;
gap: 12px;
margin-bottom: 20px;
padding-bottom: 14px;
border-bottom: 1px solid var(--rule);
}
.ex-num {
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--light);
}
.ex-title {
font-family: 'Playfair Display', serif;
font-size: 17px;
font-weight: 700;
color: var(--ink);
}
.ex-instruction {
font-size: 14px;
color: var(--mid);
margin-bottom: 18px;
font-style: italic;
}
/* MCQ */
.mcq-item {
margin-bottom: 22px;
padding-bottom: 22px;
border-bottom: 1px solid var(--rule);
}
.mcq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mcq-prompt {
font-size: 15px;
margin-bottom: 12px;
color: var(--ink);
}
.mcq-prompt .quoted {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
color: var(--mid);
display: block;
margin-bottom: 4px;
}
.mcq-options {
display: flex;
flex-direction: column;
gap: 7px;
}
.mcq-option {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
font-size: 14px;
padding: 8px 12px;
border: 1px solid transparent;
transition: all 0.2s;
font-family: 'JetBrains Mono', monospace;
color: var(--mid);
border-radius: 2px;
}
.mcq-option:hover { background: var(--accent-pale); border-color: var(--rule); }
.mcq-option.selected-correct { background: var(--correct-pale); border-color: var(--correct); color: var(--correct); }
.mcq-option.selected-wrong { background: var(--wrong-pale); border-color: var(--wrong); color: var(--wrong); }
.mcq-option.revealed-correct { background: var(--correct-pale); border-color: var(--correct); color: var(--correct); opacity: 0.7; }
.mcq-option input[type="radio"] { display: none; }
.mcq-feedback {
margin-top: 8px;
font-size: 12px;
font-family: 'JetBrains Mono', monospace;
min-height: 18px;
color: var(--light);
}
/* TRANSFORMATION EXERCISE */
.transform-item {
margin-bottom: 24px;
}
.transform-direct {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
color: var(--mid);
margin-bottom: 4px;
}
.transform-direct .qs {
color: var(--ink);
}
.transform-stem {
font-size: 14px;
margin-bottom: 6px;
color: var(--ink);
}
.transform-stem em {
font-style: normal;
color: var(--light);
}
.transform-input {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
border: none;
border-bottom: 1.5px solid var(--rule);
background: transparent;
color: var(--ink);
outline: none;
padding: 4px 0;
width: 100%;
max-width: 460px;
transition: border-color 0.2s;
}
.transform-input:focus { border-bottom-color: var(--accent); }
.transform-input.correct { border-bottom-color: var(--correct); color: var(--correct); }
.transform-input.wrong { border-bottom-color: var(--wrong); }
.transform-feedback {
font-size: 12px;
font-family: 'JetBrains Mono', monospace;
margin-top: 5px;
min-height: 16px;
color: var(--light);
}
.transform-feedback.correct { color: var(--correct); }
.transform-feedback.wrong { color: var(--wrong); }
.check-btn {
font-family: 'JetBrains Mono', monospace;
font-size: 10px;
letter-spacing: 2px;
text-transform: uppercase;
background: var(--ink);
color: white;
border: none;
padding: 9px 20px;
cursor: pointer;
margin-top: 16px;
transition: background 0.2s;
}
.mcq-options.locked {
pointer-events: none;
}
.mcq-options.locked .mcq-option {
cursor: default;
}
.mcq-options.locked .mcq-option:not(.selected-correct):not(.selected-wrong):not(.revealed-correct) {
opacity: 0.45;
}
.reset-btn {
background: transparent;
color: var(--mid);
border: 1px solid var(--rule);
margin-left: 10px;
}
.reset-btn:hover {
background: var(--accent-pale);
border-color: var(--accent);
color: var(--accent);
}
.ex-score {
margin-top: 16px;
padding-top: 14px;
border-top: 1px solid var(--rule);
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
letter-spacing: 1px;
color: var(--light);
display: none;
}
.ex-score.visible { display: block; }
/* SUMMARY BOX */
.summary-box {
background: var(--ink);
color: #e8dcc8;
padding: 32px 36px;
margin: 40px 0 0;
}
.summary-title {
font-family: 'Playfair Display', serif;
font-size: 20px;
font-weight: 700;
margin-bottom: 18px;
color: white;
}
.summary-rule {
display: flex;
gap: 16px;
margin-bottom: 12px;
font-size: 13px;
line-height: 1.5;
}
.summary-bullet {
font-family: 'JetBrains Mono', monospace;
color: #c8b89a;
font-size: 10px;
margin-top: 3px;
flex-shrink: 0;
}
.summary-rule code {
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
background: rgba(255,255,255,0.1);
padding: 1px 5px;
color: #d8c8a8;
}
</style>
</head>
<body>
<div class="topbar">
<span>DSP English Hub</span>
<span>Grammar · Reported Speech</span>
<a href="#">← Back to Hub</a>
</div>
<div class="hero">
<div class="hero-kicker">Grammar Reference + Practice</div>
<h1 class="hero-title">Reported Questions</h1>
<p class="hero-sub">When you report what someone asked, the structure changes. Two rules govern everything: word order and tense.</p>
</div>
<div class="content">
<!-- SECTION 1: WHAT CHANGES -->
<div class="section">
<div class="section-number">01 — The Core Problem</div>
<h2 class="section-title">Why questions change when reported</h2>
<p>When you ask a question directly, English uses inverted word order and auxiliary verbs: <em>"Where do you live?"</em> When you report that question, both of those things disappear. The reported version looks and sounds like a statement, not a question.</p>
<p>Two things always change. Sometimes a third does too.</p>
<div class="rule-grid">
<div class="rule-card" data-num="1">
<div class="rule-card-title">Rule 1 — Word order</div>
<div class="rule-card-body">No inversion. No auxiliary verb. The word order becomes subject + verb, like in a statement.</div>
<div class="rule-card-example">"Where does she live?"<br>→ He asked where she <strong>lived</strong><br>(not: where <s>did she live</s>)</div>
</div>
<div class="rule-card" data-num="2">
<div class="rule-card-title">Rule 2 — Tense shift</div>
<div class="rule-card-body">The verb moves one step back in time. Present becomes past; past becomes past perfect.</div>
<div class="rule-card-example">"Are you ready?"<br>→ She asked if I <strong>was</strong> ready<br>(not: if I <s>am</s> ready)</div>
</div>
<div class="rule-card" data-num="3">
<div class="rule-card-title">Rule 3 — Yes/No connector</div>
<div class="rule-card-body">Yes/no questions need <strong>if</strong> or <strong>whether</strong> to link the reported question to the verb.</div>
<div class="rule-card-example">"Have you met him?"<br>→ She asked <strong>if</strong> I had met him<br>→ She asked <strong>whether</strong> I had met him</div>
</div>
<div class="rule-card" data-num="4">
<div class="rule-card-title">No question mark</div>
<div class="rule-card-body">A reported question is a statement. It ends with a full stop, not a question mark.</div>
<div class="rule-card-example">
✗ She asked where I was going?<br>
✓ She asked where I was going.
</div>
</div>
</div>
</div>
<!-- SECTION 2: TENSE SHIFTS -->
<div class="section">
<div class="section-number">02 — Tense Reference</div>
<h2 class="section-title">How tenses shift</h2>
<p>The verb in the original question shifts one step into the past when reported. Here are all the shifts you need:</p>
<table class="tense-table">
<thead>
<tr>
<th>Direct question uses</th>
<th></th>
<th>Reported question uses</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td class="shift-col">present simple<br><em>is / are / do / does</em></td>
<td class="arrow">→</td>
<td class="shift-col">past simple<br><em>was / were / did</em></td>
<td class="reported-col">"Are you ready?" → she asked if I <strong>was</strong> ready</td>
</tr>
<tr>
<td class="shift-col">present continuous<br><em>is/are + -ing</em></td>
<td class="arrow">→</td>
<td class="shift-col">past continuous<br><em>was/were + -ing</em></td>
<td class="reported-col">"What are you doing?" → she asked what I <strong>was doing</strong></td>
</tr>
<tr>
<td class="shift-col">past simple<br><em>did / went / said</em></td>
<td class="arrow">→</td>
<td class="shift-col">past perfect<br><em>had + past participle</em></td>
<td class="reported-col">"Where did you go?" → she asked where I <strong>had gone</strong></td>
</tr>
<tr>
<td class="shift-col">present perfect<br><em>have/has + pp</em></td>
<td class="arrow">→</td>
<td class="shift-col">past perfect<br><em>had + past participle</em></td>
<td class="reported-col">"Have you eaten?" → she asked if I <strong>had eaten</strong></td>
</tr>
<tr>
<td class="shift-col">will</td>
<td class="arrow">→</td>
<td class="shift-col">would</td>
<td class="reported-col">"Will you help?" → she asked if I <strong>would</strong> help</td>
</tr>
<tr>
<td class="shift-col">can</td>
<td class="arrow">→</td>
<td class="shift-col">could</td>
<td class="reported-col">"Can you swim?" → she asked if I <strong>could</strong> swim</td>
</tr>
</tbody>
</table>
<div class="note-box">
<strong>Note</strong>
Could, would, should, might, and ought to do not change — they are already past in form.
</div>
</div>
<!-- SECTION 3: TWO TYPES -->
<div class="section">
<div class="section-number">03 — Two Types</div>
<h2 class="section-title">wh-questions vs yes/no questions</h2>
<p>The two types of direct question are reported differently. The difference is in how you connect the reported clause.</p>
<div class="compare-block">
<div class="compare-col">
<div class="compare-header">wh-questions — use the wh-word</div>
<div class="compare-example">
<span class="label">Direct</span>
<span class="form">"Where do you live?"</span>
</div>
<div class="compare-example">
<span class="label">Reported</span>
<span class="form">He asked <strong>where</strong> I lived.</span>
</div>
<div class="compare-example" style="margin-top:12px">
<span class="label">Direct</span>
<span class="form">"Why did she leave?"</span>
</div>
<div class="compare-example">
<span class="label">Reported</span>
<span class="form">He asked <strong>why</strong> she had left.</span>
</div>
<div class="compare-example" style="margin-top:12px">
<span class="label">Direct</span>
<span class="form">"What time will you arrive?"</span>
</div>
<div class="compare-example">
<span class="label">Reported</span>
<span class="form">He asked <strong>what time</strong> I would arrive.</span>
</div>
</div>
<div class="compare-col">
<div class="compare-header">yes/no questions — use if or whether</div>
<div class="compare-example">
<span class="label">Direct</span>
<span class="form">"Are you coming?"</span>
</div>
<div class="compare-example">
<span class="label">Reported</span>
<span class="form">She asked <strong>if</strong> I was coming.</span>
</div>
<div class="compare-example" style="margin-top:12px">
<span class="label">Direct</span>
<span class="form">"Have you seen him?"</span>
</div>
<div class="compare-example">
<span class="label">Reported</span>
<span class="form">She asked <strong>whether</strong> I had seen him.</span>
</div>
<div class="compare-example" style="margin-top:12px">
<span class="label">Direct</span>
<span class="form">"Did you eat breakfast?"</span>
</div>
<div class="compare-example">
<span class="label">Reported</span>
<span class="form">She asked <strong>if</strong> I had eaten breakfast.</span>
</div>
</div>
</div>
<div class="note-box">
<strong>if vs whether</strong>
Both are correct for yes/no questions. <em>Whether</em> is slightly more formal and is often preferred in writing.
</div>
</div>
<!-- EXERCISE 1: MCQ -->
<div class="section">
<div class="section-number">04 — Practice</div>
<h2 class="section-title">Exercises</h2>
<div class="exercise-block">
<div class="ex-header">
<span class="ex-num">Exercise A</span>
<span class="ex-title">Choose the correct reported form</span>
</div>
<p class="ex-instruction">Select the correctly reported version of each direct question.</p>
<!-- Q1 -->
<div class="mcq-item" data-correct="b">
<div class="mcq-prompt">
<span class="quoted">"Where does your family live?"</span>
She asked me ___________
</div>
<div class="mcq-options">
<label class="mcq-option" onclick="selectOption(this, 'a', 'mcq1')">
<input type="radio" name="mcq1" value="a">
a) where does my family live
</label>
<label class="mcq-option" onclick="selectOption(this, 'b', 'mcq1')">
<input type="radio" name="mcq1" value="b">
b) where my family lived
</label>
<label class="mcq-option" onclick="selectOption(this, 'c', 'mcq1')">
<input type="radio" name="mcq1" value="c">
c) where did my family live
</label>
</div>
<div class="mcq-feedback" id="mcq1-fb"></div>
</div>
<!-- Q2 -->
<div class="mcq-item" data-correct="c">
<div class="mcq-prompt">
<span class="quoted">"Have you ever been to New York?"</span>
He wanted to know ___________
</div>
<div class="mcq-options">
<label class="mcq-option" onclick="selectOption(this, 'a', 'mcq2')">
<input type="radio" name="mcq2" value="a">
a) have I ever been to New York
</label>
<label class="mcq-option" onclick="selectOption(this, 'b', 'mcq2')">
<input type="radio" name="mcq2" value="b">
b) if I have ever been to New York
</label>
<label class="mcq-option" onclick="selectOption(this, 'c', 'mcq2')">
<input type="radio" name="mcq2" value="c">
c) if I had ever been to New York
</label>
</div>
<div class="mcq-feedback" id="mcq2-fb"></div>
</div>
<!-- Q3 -->
<div class="mcq-item" data-correct="a">
<div class="mcq-prompt">
<span class="quoted">"Why did you change your answer?"</span>
The teacher asked me ___________
</div>
<div class="mcq-options">
<label class="mcq-option" onclick="selectOption(this, 'a', 'mcq3')">
<input type="radio" name="mcq3" value="a">
a) why I had changed my answer
</label>
<label class="mcq-option" onclick="selectOption(this, 'b', 'mcq3')">
<input type="radio" name="mcq3" value="b">
b) why did I change my answer
</label>
<label class="mcq-option" onclick="selectOption(this, 'c', 'mcq3')">
<input type="radio" name="mcq3" value="c">
c) why I change my answer
</label>
</div>
<div class="mcq-feedback" id="mcq3-fb"></div>
</div>
<!-- Q4 -->
<div class="mcq-item" data-correct="b">
<div class="mcq-prompt">
<span class="quoted">"Will you come to the party?"</span>
She asked me ___________
</div>
<div class="mcq-options">
<label class="mcq-option" onclick="selectOption(this, 'a', 'mcq4')">
<input type="radio" name="mcq4" value="a">
a) if I will come to the party
</label>
<label class="mcq-option" onclick="selectOption(this, 'b', 'mcq4')">
<input type="radio" name="mcq4" value="b">
b) if I would come to the party
</label>
<label class="mcq-option" onclick="selectOption(this, 'c', 'mcq4')">
<input type="radio" name="mcq4" value="c">
c) whether would I come to the party
</label>
</div>
<div class="mcq-feedback" id="mcq4-fb"></div>
</div>
</div>
<!-- EXERCISE B: TRANSFORMATION -->
<div class="exercise-block">
<div class="ex-header">
<span class="ex-num">Exercise B</span>
<span class="ex-title">Transform the questions</span>
</div>
<p class="ex-instruction">Report each direct question. Complete the sentence. Press Check when you've finished all five.</p>
<div class="transform-item" id="t1">
<div class="transform-direct">Direct: <span class="qs">"What are you reading?"</span></div>
<div class="transform-stem">He asked me what <em>___________</em></div>
<input class="transform-input" id="t1-input" placeholder="type your answer here" autocomplete="off" spellcheck="false">
<div class="transform-feedback" id="t1-fb"></div>
</div>
<div class="transform-item" id="t2">
<div class="transform-direct">Direct: <span class="qs">"Did you finish the homework?"</span></div>
<div class="transform-stem">She asked me if <em>___________</em></div>
<input class="transform-input" id="t2-input" placeholder="type your answer here" autocomplete="off" spellcheck="false">
<div class="transform-feedback" id="t2-fb"></div>
</div>
<div class="transform-item" id="t3">
<div class="transform-direct">Direct: <span class="qs">"How long have you been waiting?"</span></div>
<div class="transform-stem">He wanted to know how long <em>___________</em></div>
<input class="transform-input" id="t3-input" placeholder="type your answer here" autocomplete="off" spellcheck="false">
<div class="transform-feedback" id="t3-fb"></div>
</div>
<div class="transform-item" id="t4">
<div class="transform-direct">Direct: <span class="qs">"Can you speak German?"</span></div>
<div class="transform-stem">She asked me whether <em>___________</em></div>
<input class="transform-input" id="t4-input" placeholder="type your answer here" autocomplete="off" spellcheck="false">
<div class="transform-feedback" id="t4-fb"></div>
</div>
<div class="transform-item" id="t5">
<div class="transform-direct">Direct: <span class="qs">"Where will you be tomorrow?"</span></div>
<div class="transform-stem">He asked me where <em>___________</em></div>
<input class="transform-input" id="t5-input" placeholder="type your answer here" autocomplete="off" spellcheck="false">
<div class="transform-feedback" id="t5-fb"></div>
</div>
<button class="check-btn" onclick="checkTransformations()">Check answers</button>
<button class="check-btn reset-btn" onclick="resetTransformations()">Reset</button>
<div class="ex-score" id="transform-score"></div>
</div>
</div>
<!-- SUMMARY -->
<div class="summary-box">
<div class="summary-title">Quick Reference</div>
<div class="summary-rule">
<span class="summary-bullet">—</span>
<span>Reported questions use <strong>statement word order</strong> — no inversion, no auxiliary: <code>she asked where I lived</code></span>
</div>
<div class="summary-rule">
<span class="summary-bullet">—</span>
<span>The verb shifts <strong>one tense back</strong>: present → past, past → past perfect, will → would, can → could</span>
</div>
<div class="summary-rule">
<span class="summary-bullet">—</span>
<span>Yes/no questions need <strong>if</strong> or <strong>whether</strong>: <code>she asked if I had eaten</code></span>
</div>
<div class="summary-rule">
<span class="summary-bullet">—</span>
<span>Reported questions end with a <strong>full stop</strong>, not a question mark</span>
</div>
</div>
</div>
<script>
// MCQ LOGIC
const mcqFeedback = {
mcq1: { b: '✓ Correct — statement word order, tense shifted to past.', a: '✗ Inversion error: reported questions use statement order.', c: '✗ Inversion error: remove the auxiliary "did".' },
mcq2: { c: '✓ Correct — yes/no question uses "if", present perfect shifts to past perfect.', a: '✗ Missing "if/whether", tense not shifted, and inversion error — three problems at once.', b: '✗ Tense error: "have been" → "had been" in reported speech.' },
mcq3: { a: '✓ Correct — past simple shifts to past perfect: changed → had changed.', b: '✗ Inversion error: remove "did". Reported questions use statement word order.', c: '✗ Tense error: present simple must shift back — "change" → "had changed".' },
mcq4: { b: '✓ Correct — "will" → "would", yes/no question uses "if".', a: '✗ Tense error: "will" must shift to "would".', c: '✗ Inversion error after "whether".' }
};
function selectOption(el, val, group) {
const item = el.closest('.mcq-item');
// Lock after first answer
if (item.dataset.answered) return;
item.dataset.answered = 'true';
item.querySelector('.mcq-options').classList.add('locked');
const correct = item.dataset.correct;
const fb = document.getElementById(group + '-fb');
if (val === correct) {
el.classList.add('selected-correct');
fb.textContent = mcqFeedback[group][val];
fb.style.color = 'var(--correct)';
} else {
el.classList.add('selected-wrong');
fb.textContent = mcqFeedback[group][val];
fb.style.color = 'var(--wrong)';
setTimeout(() => {
item.querySelectorAll('.mcq-option').forEach(o => {
const oVal = o.querySelector('input').value;
if (oVal === correct) o.classList.add('revealed-correct');
});
}, 1000);
}
}
// TRANSFORMATION LOGIC
const transformAnswers = {
't1': ['i was reading', 'i was reading.'],
't2': ['i had finished the homework', 'i had finished the homework.', 'i had finished it', 'i had done the homework', 'i had done the homework.'],
't3': ['i had been waiting', 'i had been waiting.'],
't4': ['i could speak german', 'i could speak german.'],
't5': ['i would be the next day', 'i would be the following day', 'i would be tomorrow', 'i would be tomorrow.', 'i would be the next day.'],
};
const transformCorrectText = {
't1': '✓ I was reading — present continuous → past continuous',
't2': '✓ I had finished the homework — past simple → past perfect',
't3': '✓ I had been waiting — present perfect continuous → past perfect continuous',
't4': '✓ I could speak German — can → could',
't5': '✓ I would be the next day — will → would'
};
function norm(s) {
return s.toLowerCase().trim().replace(/[.,!?]$/, '').replace(/\s+/g, ' ');
}
function checkTransformations() {
let correct = 0;
const ids = ['t1', 't2', 't3', 't4', 't5'];
ids.forEach(id => {