Skip to content

nb488/LanguageScenarioPractice

Repository files navigation

PlotTwist — AI Language Scenario Practice

PlotTwist is a full-stack language learning web application that helps users practice real-world conversations by interacting with an AI assistant in scenario-based roleplay.

Users choose a target language, proficiency level, and situation (e.g., ordering food, buying groceries, asking for directions), and the app generates adaptive, contextual dialogue to simulate realistic conversations.

PlotTwist chat interface PlotTwist scenario selection

Features

  • Practice conversations in multiple languages
  • Scenario-based roleplay (restaurants, shopping, travel, etc.)
  • AI-generated responses tailored to user input and proficiency level
  • Interactive chat interface
  • Built with modern React and Vite

Tech Stack

  • Frontend: React 19, React Router
  • Build Tooling: Vite
  • AI Integration: OpenRouter API

Requirements

  • Node.js 18+
  • npm

Getting Started

1. Clone the repository

git clone https://github.com/nb488/LanguageScenarioPractice.git

2. Set up environment variables

Edit the .env file in the project root:

VITE_OPENROUTER_API_KEY=your_api_key_here

3. Install dependencies

npm install

4. Run the development server

npm run dev

The app will be available at http://localhost:5173


Future Improvements

  • Speech-to-text and text-to-speech support
  • User accounts and saved progress
  • Improved conversation feedback and corrections

Acknowledgements

This project was developed during the BU1DL 4-month program, with support and feedback from mentors throughout its development..


Disclaimer

This project is intended for educational and portfolio purposes. API usage may incur costs depending on the OpenRouter model selected.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors