https://github.com/ryelle/k-sentence-analysis
A little AI app to help study the Korean language
https://github.com/ryelle/k-sentence-analysis
Last synced: 6 months ago
JSON representation
A little AI app to help study the Korean language
- Host: GitHub
- URL: https://github.com/ryelle/k-sentence-analysis
- Owner: ryelle
- Created: 2025-08-15T14:47:46.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-12-30T04:20:24.000Z (7 months ago)
- Last Synced: 2026-01-02T14:29:53.635Z (7 months ago)
- Language: TypeScript
- Homepage: https://k-sentence-analysis.vercel.app
- Size: 465 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Korean Sentence Analysis
This is a fairly simple app using Next.js and the [AI SDK](https://ai-sdk.dev/) to parse out grammar and vocabulary details from given Korean sentences. For example, given "한국어는 공부할 만해요.", it will translate each word (한국어: Korean), highlight a few grammar points (-할 만하다: to be worth doing), and translate the sentence in full ("Korean is worth studying.").
This will locally-cache the AI results to avoid repeated calls, but only while the page is open. Sometimes the AI API does not return the full expected object causing an error — trying again usually works.
Read my writeup & see some screenshots: https://ryelle.codes/2025/08/building-a-korean-grammar-breakdown-tool-with-ai-and-next-js/
## Try it out!
You'll need an OpenAI API key. Once you have it, create a file `.env.local` and add the key like this:
```
OPENAI_API_KEY=yourkeyhere
```
Now you can install the dependencies and start the app.
```bash
npm install
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.