Generate bilingual Hebrew/English trivia questions from paramedic course PDFs for the Paramedic Trivia game. Use this skill whenever the user uploads a PDF and wants to generate trivia questions from it, or mentions adding questions to the trivia game, or says something like 'add this material to the game' or 'generate questions from this PDF'. Also trigger when the user mentions 'trivia', 'quiz questions', or 'שאלות טריוויה'.
You are generating bilingual trivia questions from paramedic course material (PDFs) for a web-based trivia game. The game expects questions in a specific JSON format that can be imported directly via the admin panel.
Extract text from the PDF — Use pdftotext (poppler) or pdfplumber to extract text. The PDFs are typically in Hebrew with some English medical terms. Handle RTL text gracefully.
Identify the subject — Determine what medical subject the PDF covers. Choose an existing subject ID if it matches, or create a new one. Use lowercase_snake_case for IDs.
Existing subjects in the game:
water_electrolytes — משק המים והאלקטרוליטיםoxygen — החמצןacid_base — מאזן חומצה-בסיסaed — דפיברילטור AEDlegal — היבטים משפטייםlung_volumes — נפחי ריאהcpr_intro — מבוא להחייאהelectrophysiology — אלקטרופיזיולוגיה של הלבmedical_terminology — מושגי יסוד וטרמינולוגיהrespiratory_anatomy — אנטומיה של מערכת הנשימהchemistry — מבוא לכימיהbody_structure — מבנה הגוףblood_vessels — כלי דםurinary_system — מערכת השתןcell_respiration — נשימה תאיתnervous_system — מערכת העצביםcardiovascular — מערכת הקרדיווסקולאריתGenerate 8-12 questions per PDF — Create a mix of multiple_choice (4 options) and true_false questions. Aim for roughly 70% multiple choice and 30% true/false.
Output the JSON — Save the questions as a JSON file that can be directly pasted into the admin panel's "Import JSON" feature.
Good paramedic trivia questions should:
Avoid:
[
{
"subject_id": "nervous_system",
"subject_name_he": "מערכת העצבים",
"subject_name_en": "Nervous System",
"type": "multiple_choice",
"question_he": "מהו התפקיד העיקרי של מערכת העצבים הסימפתטית?",
"question_en": "What is the main function of the sympathetic nervous system?",
"options_he": [
"תגובת לחימה או בריחה",
"עיכול מזון",
"שינה ומנוחה",
"ייצור הורמונים"
],
"options_en": [
"Fight or flight response",
"Food digestion",
"Sleep and rest",
"Hormone production"
],
"correct": 0,
"explanation_he": "מערכת העצבים הסימפתטית אחראית על תגובת הלחימה או הבריחה, המכינה את הגוף למצבי חירום.",
"explanation_en": "The sympathetic nervous system is responsible for the fight or flight response, preparing the body for emergency situations."
},
{
"subject_id": "nervous_system",
"subject_name_he": "מערכת העצבים",
"subject_name_en": "Nervous System",
"type": "true_false",
"question_he": "מערכת העצבים המרכזית כוללת את המוח וחוט השדרה.",
"question_en": "The central nervous system includes the brain and spinal cord.",
"correct": true,
"explanation_he": "נכון. מערכת העצבים המרכזית (CNS) מורכבת מהמוח וחוט השדרה.",
"explanation_en": "Correct. The central nervous system (CNS) consists of the brain and spinal cord."
}
]
| Field | Type | Required | Description |
|---|---|---|---|
subject_id | string | Yes | Snake_case subject identifier |
subject_name_he | string | Yes | Hebrew subject name |
subject_name_en | string | Yes | English subject name |
type | string | Yes | "multiple_choice" or "true_false" |
question_he | string | Yes | Question text in Hebrew |
question_en | string | Yes | Question text in English |
options_he | string[] | MC only | 4 Hebrew answer options |
options_en | string[] | MC only | 4 English answer options |
correct | number/boolean | Yes | Index 0-3 for MC, true/false for TF |
explanation_he | string | Yes | Hebrew explanation of the answer |
explanation_en | string | Yes | English explanation of the answer |
After writing the JSON file, tell the user:
/admin → "Import JSON" tabPOST /api/admin/import with {"questions": [...]} (requires admin auth)