2025-05-11

Introduction

This Shiny app was created for the Coursera Developing Data Products course.
It helps law students revise key legal topics using interactive flashcards.

Core Features: - Choose a topic (e.g., Contract Law, Tort Law)
- Select difficulty (Basic, Intermediate, Advanced)
- Display a random question based on your inputs

How It Works

Users select: - A topic
- A difficulty level

Then they click “Show Flashcard”
→ A legal question appears instantly.

sample_flashcard <- function(topic, level) {
  paste("Topic:", topic, "| Level:", level,
        "\nQ: What is required for a valid contract?")
}

sample_flashcard("Contract Law", "Intermediate")

[1] “Topic: Contract Law | Level: Intermediate : What is required for a valid contract?”

Deployment and Access

App Logic Example

This shows how flashcards are generated in the app:

input_topic <- "Tort Law"
input_level <- "Advanced"

sample_flashcard <- function(topic, level) {
  paste("Topic:", topic, "| Level:", level,
        "\nQ: Outline the key elements of negligence.")
}

sample_flashcard(input_topic, input_level)

[1] “Topic: Tort Law | Level: Advanced : Outline the key elements of negligence.” The app reacts to user input from the UI and displays content instantly.

Created by Damethri George
2025-05-11