This project is a clone of Google's Little Language Lessons, a collection of bite-sized language learning experiments originally built with Gemini.
Note: A video fully process on how this was created using Cursor AI will be released later. This took ~3 hours including all the steps from setup to completion.
- Tiny Lesson: Find relevant vocabulary, phrases, and grammar tips for any situation.
- Slang Hang: Learn expressions, idioms, and regional slang from a generated conversation between native speakers.
- Next.js: React framework for the frontend
- OpenAI API: For generating language learning content
- shadcn/ui: UI component library
- Google Translate TTS: Unofficial API for text-to-speech functionality
-
Clone the repository:
git clone https://github.com/yourusername/little-language-lessons-clone.git cd little-language-lessons-clone -
Install dependencies:
npm install -
Create a
.env.localfile in the root directory with the following variables:# AI model name to use AI_MODEL_NAME=gpt-4o # Base URL for the AI service API | use openai or compatible api AI_BASE_URL=https://api.openai.com/v1 # Your API key for the AI service AI_API_KEY=your_api_key_here -
Run the development server:
npm run dev -
Open http://localhost:3000 with your browser to see the result.
AI_MODEL_NAME: model to use (recommend gpt-4o or better)AI_BASE_URL: Base URL for the OpenAI compatible API endpointAI_API_KEY: Your API key for accessing the OpenAI service
- Select a language and specify a topic/purpose
- Get vocabulary, useful phrases, and language tips related to your chosen topic
- Text-to-speech functionality to hear correct pronunciation
- Experience a realistic conversation between native speakers
- Learn authentic slang, idioms, and colloquial expressions
- Each conversation includes a glossary of slang terms with definitions and examples
Unlike the original Google implementation that breaks down AI calls into multiple smaller parts, this clone makes a single OpenAI API call for each experiment. This approach can be prone to errors if using smaller models with limited context windows or processing capabilities.
- Implement Experiment 3 from the original Little Language Lessons
- Break up Tiny Lesson and Slang Hang into multiple smaller API calls to improve speed and loading times
- Implement error checking for each smaller part when breaking up the API calls
- Add fallback mechanisms for handling model errors or limitations
This project is for educational purposes only. The original Little Language Lessons is a product of Google Labs.






