/* ── LESSON PACK: TENSES ── Loads after learn-lessons.jsx — pushes into window.LESSONS_DATA */ window.LESSONS_DATA.push( /* ─── PRESENT PERFECT ─── */ { id:'present-perfect', level:'B1', icon:'🧾', group:'tenses', title:{ en:'Present Perfect — Past with a Result Now', ar:'المضارع التام — ماضٍ له نتيجة الآن', tr:'Present Perfect — Şimdiye Etkisi Olan Geçmiş' }, summary:{ en:'Actions that happened at an unknown time, or that started in the past and still matter now.', ar:'أحداث وقعت في وقت غير محدد، أو بدأت في الماضي وما زالت مهمة الآن.', tr:'Zamanı belirsiz ya da geçmişte başlayıp hâlâ önemli olan eylemler.', }, sections:[ { type:'concept', title:{ en:'How it works', ar:'كيف يعمل' }, body:{ en:'**Form:** have/has + past participle (worked, done, written)\n**Use for:** (1) life experience — *I have visited Japan.* (2) results that matter now — *I have finished the report* (it\u2019s ready now). (3) actions continuing until now — *She has worked here for five years.*\nSignal words: *ever, never, already, yet, just, since, for, so far.*', ar:'**التركيب:** have/has + التصريف الثالث (worked, done, written)\n**الاستخدام:** (1) تجارب الحياة — *I have visited Japan.* (2) نتائج مهمة الآن — *I have finished the report* (جاهز الآن). (3) أفعال مستمرة حتى الآن — *She has worked here for five years.*\nكلمات دلالية: *ever, never, already, yet, just, since, for, so far.*', }}, { type:'table', title:{ en:'Key participles', ar:'أهم التصريفات الثالثة' }, headers:['Base','Past','Participle'], rows:[ ['do','did','done'], ['go','went','gone / been'], ['write','wrote','written'], ['see','saw','seen'], ['take','took','taken'], ['make','made','made'], ['find','found','found'], ['break','broke','broken'], ]}, { type:'examples', title:{ en:'Examples', ar:'أمثلة' }, items:[ { en:'I have just finished the design review.', ar:'أنهيت مراجعة التصميم للتو.', ctx:'Standup' }, { en:'Have you ever used this framework?', ar:'هل سبق أن استخدمت هذا الإطار؟', ctx:'Interview' }, { en:'She has worked in three countries.', ar:'عملت في ثلاث دول.', ctx:'Experience' }, { en:'We haven\u2019t received the parts yet.', ar:'لم نستلم القطع بعد.', ctx:'Status' }, { en:'The team has already fixed that bug.', ar:'أصلح الفريق ذلك الخلل بالفعل.', ctx:'Update' }, { en:'I have known him since university.', ar:'أعرفه منذ الجامعة.', ctx:'About people' }, { en:'The system has been offline for two hours.', ar:'النظام متوقف منذ ساعتين.', ctx:'Incident' }, ]}, { type:'note', title:{ en:'since vs for', ar:'الفرق بين since و for' }, body:{ en:'**since** + starting point: *since 2020, since Monday, since I joined.*\n**for** + length of time: *for two years, for three hours, for a long time.*', ar:'**since** + نقطة البداية: *since 2020, since Monday.*\n**for** + مدة زمنية: *for two years, for three hours.*', }}, ], practice:[ { type:'mcq', q:'I ___ the report — here it is!', options:['finish','finished','have finished','am finishing'], a:2, explainEn:'Result matters now → present perfect.', explainAr:'النتيجة مهمة الآن → مضارع تام.' }, { type:'mcq', q:'___ you ever ___ to a tech conference?', options:['Did / go','Have / been','Have / gone','Are / going'], a:1, explainEn:'Life experience → Have you ever been…?', explainAr:'تجربة حياة → Have you ever been؟' }, { type:'mcq', q:'She has lived in Ankara ___ 2019.', options:['for','since','from','ago'], a:1, explainEn:'Starting point → since.', explainAr:'نقطة بداية → since.' }, { type:'fill', q:'We ___ (not / test) the new version yet.', a:'have not tested', explainEn:'"yet" → present perfect negative.', explainAr:'"yet" → مضارع تام منفي.' }, { type:'fill', q:'He ___ (work) here for ten years.', a:'has worked', explainEn:'Started in past, continues now.', explainAr:'بدأ في الماضي ومستمر الآن.' }, ], }, /* ─── PAST CONTINUOUS ─── */ { id:'past-continuous', level:'B1', icon:'🌙', group:'tenses', title:{ en:'Past Continuous — In the Middle of the Past', ar:'الماضي المستمر — في منتصف حدث ماضٍ', tr:'Past Continuous — Geçmişte Devam Eden' }, summary:{ en:'Actions in progress at a moment in the past — often interrupted by another action.', ar:'أفعال كانت جارية في لحظة ماضية — وغالباً قاطعها فعل آخر.', tr:'Geçmişte bir anda sürmekte olan — çoğu zaman başka bir eylemle kesilen — eylemler.', }, sections:[ { type:'concept', title:{ en:'How it works', ar:'كيف يعمل' }, body:{ en:'**Form:** was/were + verb-ing\n**Use for:** (1) an action in progress at a past moment — *At 9 p.m. I was still working.* (2) background action interrupted by a short one — *I was debugging when the power went out.* (3) two long actions in parallel — *While I was coding, she was writing the docs.*', ar:'**التركيب:** was/were + verb-ing\n**الاستخدام:** (1) فعل كان جارياً في لحظة ماضية — *At 9 p.m. I was still working.* (2) فعل طويل قاطعه فعل قصير — *I was debugging when the power went out.* (3) فعلان طويلان متوازيان — *While I was coding, she was writing the docs.*', }}, { type:'examples', title:{ en:'Examples', ar:'أمثلة' }, items:[ { en:'I was testing the circuit when it short-circuited.', ar:'كنت أختبر الدائرة عندما حدث قصر كهربائي.', ctx:'Lab story' }, { en:'What were you doing at 10 a.m. yesterday?', ar:'ماذا كنت تفعل في العاشرة صباح أمس؟', ctx:'Question' }, { en:'She was presenting when the projector failed.', ar:'كانت تقدّم العرض عندما تعطل جهاز العرض.', ctx:'Meeting story' }, { en:'While we were deploying, users were reporting errors.',ar:'بينما كنا ننشر التحديث، كان المستخدمون يبلغون عن أخطاء.', ctx:'Incident' }, { en:'It was raining when I left the office.', ar:'كانت تمطر عندما غادرت المكتب.', ctx:'Small talk' }, ]}, { type:'note', title:{ en:'when vs while', ar:'الفرق بين when و while' }, body:{ en:'**while** + long action (continuous): *While I was working…*\n**when** + short action (simple): *…when the phone rang.*', ar:'**while** + الفعل الطويل (مستمر): *While I was working…*\n**when** + الفعل القصير (بسيط): *…when the phone rang.*', }}, ], practice:[ { type:'mcq', q:'I ___ dinner when you called me.', options:['cooked','was cooking','am cooking','cook'], a:1, explainEn:'Long action interrupted → past continuous.', explainAr:'فعل طويل قُوطع → ماضٍ مستمر.' }, { type:'mcq', q:'While she ___ the data, the server crashed.', options:['analyzed','analyzes','was analyzing','has analyzed'], a:2, explainEn:'while + continuous.', explainAr:'while + مستمر.' }, { type:'fill', q:'At 8 p.m. last night, we ___ still ___ (work).', a:'were still working', explainEn:'In progress at a past moment.', explainAr:'كان جارياً في لحظة ماضية.' }, { type:'fill', q:'I ___ (read) the manual when I found the answer.', a:'was reading', explainEn:'Background action → was reading.', explainAr:'فعل في الخلفية → was reading.' }, { type:'mcq', q:'What ___ you ___ when the alarm started?', options:['did / do','were / doing','have / done','do / do'], a:1, explainEn:'Action in progress at that moment.', explainAr:'فعل جارٍ في تلك اللحظة.' }, ], }, /* ─── PAST PERFECT ─── */ { id:'past-perfect', level:'B2', icon:'⏮️', group:'tenses', title:{ en:'Past Perfect — The Earlier Past', ar:'الماضي التام — الماضي الأسبق', tr:'Past Perfect — Daha Önceki Geçmiş' }, summary:{ en:'When two things happened in the past, past perfect marks the one that happened FIRST.', ar:'عندما يقع حدثان في الماضي، يحدد الماضي التام الحدث الذي وقع أولاً.', tr:'Geçmişte iki olay olduğunda, past perfect ÖNCE olanı işaretler.', }, sections:[ { type:'concept', title:{ en:'How it works', ar:'كيف يعمل' }, body:{ en:'**Form:** had + past participle\n**Use:** to show one past action happened before another past action.\n• *When I arrived, the meeting **had started**.* → it started BEFORE I arrived.\n• *When I arrived, the meeting **started**.* → it started AFTER I arrived.\nSignal words: *before, after, by the time, already, when.*', ar:'**التركيب:** had + التصريف الثالث\n**الاستخدام:** لإظهار أن حدثاً ماضياً وقع قبل حدث ماضٍ آخر.\n• *When I arrived, the meeting **had started**.* → بدأ قبل وصولي.\n• *When I arrived, the meeting **started**.* → بدأ بعد وصولي.\nكلمات دلالية: *before, after, by the time, already, when.*', }}, { type:'examples', title:{ en:'Examples', ar:'أمثلة' }, items:[ { en:'By the time we noticed, the data had already been lost.', ar:'عندما انتبهنا، كانت البيانات قد فُقدت بالفعل.', ctx:'Incident' }, { en:'She had checked the code twice before she deployed it.', ar:'راجعت الكود مرتين قبل أن تنشره.', ctx:'Good practice' }, { en:'I hadn\u2019t seen that error before yesterday.', ar:'لم أرَ ذلك الخطأ من قبل حتى الأمس.', ctx:'Debugging' }, { en:'The client had left when we finally fixed the demo.', ar:'كان العميل قد غادر عندما أصلحنا العرض أخيراً.', ctx:'Story' }, { en:'After he had finished the tests, he wrote the summary.', ar:'بعد أن أنهى الاختبارات، كتب الملخص.', ctx:'Sequence' }, ]}, { type:'note', title:{ en:'Don\u2019t overuse it', ar:'لا تفرط في استخدامه' }, body:{ en:'If the order is already clear from *before/after*, past simple is fine: *After he finished, he left.* Use past perfect when the order matters and could be confused.', ar:'إذا كان الترتيب واضحاً من *before/after*، فالماضي البسيط كافٍ: *After he finished, he left.* استخدم الماضي التام عندما يكون الترتيب مهماً وقد يُلتبس.', }}, ], practice:[ { type:'mcq', q:'When I opened the file, someone ___ my code.', options:['changed','had changed','has changed','was changing'], a:1, explainEn:'The change happened BEFORE I opened it.', explainAr:'التغيير حدث قبل أن أفتح الملف.' }, { type:'mcq', q:'By the time the fix arrived, users ___ already ___.', options:['have / left','had / left','were / leaving','did / leave'], a:1, explainEn:'"By the time" → past perfect.', explainAr:'"By the time" → ماضٍ تام.' }, { type:'fill', q:'She ___ (never / use) Linux before this job.', a:'had never used', explainEn:'Earlier past experience → had never used.', explainAr:'تجربة سابقة أسبق → had never used.' }, { type:'fill', q:'We couldn\u2019t enter because we ___ (forget) the keycard.', a:'had forgotten', explainEn:'Forgetting happened first.', explainAr:'النسيان حدث أولاً.' }, ], }, /* ─── PRESENT PERFECT CONTINUOUS ─── */ { id:'present-perfect-continuous', level:'B2', icon:'🔄', group:'tenses', title:{ en:'Present Perfect Continuous — How Long?', ar:'المضارع التام المستمر — منذ متى؟', tr:'Present Perfect Continuous — Ne Zamandır?' }, summary:{ en:'An activity that started in the past and is still going — with focus on the duration.', ar:'نشاط بدأ في الماضي وما زال مستمراً — مع التركيز على المدة.', tr:'Geçmişte başlayıp hâlâ süren — süresi vurgulanan — bir eylem.', }, sections:[ { type:'concept', title:{ en:'How it works', ar:'كيف يعمل' }, body:{ en:'**Form:** have/has been + verb-ing\n**Use for:** (1) duration up to now — *I have been learning English for two years.* (2) recent activity with visible results — *Why are your eyes red? — I\u2019ve been staring at the screen all day.*\nAlmost always with **for**, **since**, **all day/week**, or **How long…?**', ar:'**التركيب:** have/has been + verb-ing\n**الاستخدام:** (1) المدة حتى الآن — *I have been learning English for two years.* (2) نشاط حديث له أثر ظاهر — *لماذا عيناك حمراوان؟ — كنت أحدق في الشاشة طوال اليوم.*\nغالباً مع **for** و **since** و **all day** و **?How long**.', }}, { type:'examples', title:{ en:'Examples', ar:'أمثلة' }, items:[ { en:'I have been working on this feature all week.', ar:'أعمل على هذه الميزة طوال الأسبوع.', ctx:'Standup' }, { en:'How long have you been studying English?', ar:'منذ متى وأنت تدرس الإنجليزية؟', ctx:'Question' }, { en:'The server has been running for 40 days.', ar:'الخادم يعمل منذ 40 يوماً.', ctx:'Ops' }, { en:'She has been leading the team since March.', ar:'تقود الفريق منذ مارس.', ctx:'About people' }, { en:'We have been waiting for approval for two weeks.', ar:'ننتظر الموافقة منذ أسبوعين.', ctx:'Complaint' }, ]}, { type:'note', title:{ en:'Perfect vs Perfect Continuous', ar:'التام مقابل التام المستمر' }, body:{ en:'• *I **have read** the report.* → finished, focus on result.\n• *I **have been reading** the report.* → maybe not finished, focus on activity/duration.', ar:'• *I **have read** the report.* → انتهيت، التركيز على النتيجة.\n• *I **have been reading** the report.* → ربما لم أنتهِ، التركيز على النشاط والمدة.', }}, ], practice:[ { type:'mcq', q:'I\u2019m tired — I ___ all day.', options:['coded','have been coding','am coding','code'], a:1, explainEn:'Recent activity + visible result now.', explainAr:'نشاط حديث بأثر ظاهر الآن.' }, { type:'mcq', q:'How long ___ you ___ here?', options:['do / work','are / working','have / been working','did / work'], a:2, explainEn:'Duration up to now → present perfect continuous.', explainAr:'مدة حتى الآن → مضارع تام مستمر.' }, { type:'fill', q:'It ___ (rain) since this morning.', a:'has been raining', explainEn:'Started earlier, still raining.', explainAr:'بدأ سابقاً وما زال مستمراً.' }, { type:'fill', q:'They ___ (negotiate) the contract for a month.', a:'have been negotiating', explainEn:'for + duration → perfect continuous.', explainAr:'for + مدة → تام مستمر.' }, ], }, /* ─── THE BIG TENSE COMPARISON ─── */ { id:'tenses-compare', level:'B2', icon:'🗺️', group:'tenses', title:{ en:'Which Tense? — The Big Comparison', ar:'أي زمن؟ — المقارنة الكبرى', tr:'Hangi Zaman? — Büyük Karşılaştırma' }, summary:{ en:'All the main tenses side by side — one situation, different meanings. Your cheat sheet.', ar:'كل الأزمنة الرئيسية جنباً إلى جنب — موقف واحد، معانٍ مختلفة. ورقة الغش الخاصة بك.', tr:'Tüm ana zamanlar yan yana — tek durum, farklı anlamlar. Kopya kâğıdınız.', }, sections:[ { type:'table', title:{ en:'The 8 tenses with "work"', ar:'الأزمنة الثمانية مع فعل "work"' }, headers:['Tense','Example','Meaning'], rows:[ ['Present Simple','I work here.','habit / permanent fact'], ['Present Continuous','I am working now.','happening right now / temporary'], ['Present Perfect','I have worked here for 5 years.','started in past, still true'], ['Present Perfect Cont.','I have been working all day.','duration, focus on activity'], ['Past Simple','I worked there in 2020.','finished, time known'], ['Past Continuous','I was working when you called.','in progress at a past moment'], ['Past Perfect','I had worked there before that.','earlier than another past event'], ['Future (will/going to)','I will work / am going to work.','decision now / plan made'], ]}, { type:'table', title:{ en:'Signal words map', ar:'خريطة الكلمات الدلالية' }, headers:['If you see…','Use…'], rows:[ ['every day, usually, always','Present Simple'], ['now, at the moment, currently','Present Continuous'], ['ever, never, just, yet, already','Present Perfect'], ['for / since + still true','Present Perfect (Cont.)'], ['yesterday, ago, in 2020, last week','Past Simple'], ['while, when + interrupted','Past Continuous'], ['by the time, before, after (order matters)','Past Perfect'], ['tomorrow, next week, soon','will / going to'], ]}, { type:'examples', title:{ en:'Same verb, different story', ar:'نفس الفعل، قصة مختلفة' }, items:[ { en:'I fix bugs. → it\u2019s my job.', ar:'أُصلح الأخطاء. → هذه وظيفتي.', ctx:'Simple' }, { en:'I\u2019m fixing a bug. → right now, don\u2019t interrupt.', ar:'أُصلح خطأً الآن. → لا تقاطعني.', ctx:'Continuous' }, { en:'I\u2019ve fixed the bug. → done, you can deploy.', ar:'أصلحت الخطأ. → انتهيت، يمكنك النشر.', ctx:'Perfect' }, { en:'I\u2019ve been fixing bugs all night. → that\u2019s why I\u2019m tired.', ar:'كنت أصلح الأخطاء طوال الليل. → لهذا أنا متعب.', ctx:'Perfect Cont.' }, { en:'I fixed the bug yesterday. → finished, time stated.', ar:'أصلحت الخطأ أمس. → انتهى، والوقت محدد.', ctx:'Past Simple' }, { en:'I was fixing the bug when the demo started.', ar:'كنت أصلح الخطأ عندما بدأ العرض.', ctx:'Past Cont.' }, { en:'I had fixed the bug before the demo started.', ar:'كنت قد أصلحت الخطأ قبل أن يبدأ العرض.', ctx:'Past Perfect' }, ]}, { type:'note', title:{ en:'The golden question', ar:'السؤال الذهبي' }, body:{ en:'Ask yourself: **When did it happen, and does it still matter now?**\n• Time stated & finished → Past Simple.\n• No time & result matters now → Present Perfect.\nThis one decision fixes 80% of tense mistakes.', ar:'اسأل نفسك: **متى حدث؟ وهل ما زال مهماً الآن؟**\n• الوقت محدد ومنتهٍ → ماضٍ بسيط.\n• لا وقت محدداً والنتيجة مهمة الآن → مضارع تام.\nهذا القرار وحده يصحح 80% من أخطاء الأزمنة.', }}, ], practice:[ { type:'mcq', q:'I ___ this movie three times. (experience, no time given)', options:['saw','have seen','see','had seen'], a:1, explainEn:'No specific time → present perfect.', explainAr:'لا وقت محدداً → مضارع تام.' }, { type:'mcq', q:'I ___ this movie last Friday.', options:['saw','have seen','see','was seeing'], a:0, explainEn:'Time stated (last Friday) → past simple.', explainAr:'الوقت محدد → ماضٍ بسيط.' }, { type:'mcq', q:'Water ___ at 100°C.', options:['is boiling','boils','has boiled','boiled'], a:1, explainEn:'Scientific fact → present simple.', explainAr:'حقيقة علمية → مضارع بسيط.' }, { type:'mcq', q:'Sorry, I can\u2019t talk — I ___ to a meeting.', options:['walk','am walking','have walked','walked'], a:1, explainEn:'Happening right now → continuous.', explainAr:'يحدث الآن → مستمر.' }, { type:'fill', q:'By the time we arrived, the demo ___ (finish).', a:'had finished', explainEn:'Earlier past → past perfect.', explainAr:'الحدث الأسبق → ماضٍ تام.' }, { type:'fill', q:'She ___ (study) English since 2023 and still improves daily.', a:'has been studying', explainEn:'since + still continuing → perfect continuous.', explainAr:'since + مستمر → تام مستمر.' }, ], }, );