notion-vocab-quiz
v1.0.3
Published
A CLI tool to create vocabulary quizzes from Notion database
Maintainers
Readme
Notion Vocab Quiz
A CLI tool to create vocabulary quizzes from your Notion database. This tool helps you learn vocabulary by creating interactive quizzes from words stored in your Notion database.
Features
- Create multiple types of quizzes:
- Multiple choice
- Synonym matching
- Word-definition matching
- Keyword checking
- Fill in the blank
- Export quiz results to CSV
- Support for Vietnamese and English definitions
- Interactive CLI interface
- Progress tracking
- Detailed feedback and explanations
Installation
npm install -g notion-vocab-quizYou can use any of these commands:
notion-vocab-quiz # Full command
nvq # Short alias
vq # Shortest aliasSetup
Create a Notion integration:
- Go to https://www.notion.so/my-integrations
- Login to your Notion account
- Click "New integration"
- Give it a name (Integration Name) (e.g., "Vocab Quiz")
- Select your workspace (Associated workspace)
- Type "Internal"
- Click "Save"
- Show and Copy the API key (Internal Integration Secret)
Create Notion Database
You can duplicate the template from my Notion: Vocabulary Template or you can create new one by yourself
Your Notion database should have the following properties:
Word(title): The vocabulary wordCategory(select): Word categoryDefinition (VN)(text): Vietnamese definitionDefinition (EN)(text): English definitionExample(text): Example sentenceSynonyms(text): Related wordsNote(text): Additional notesCreated time(date): When the word was created
Share your database with the integration:
- Open your Notion database
- Click "..." in the top right
- Click "Add connections"
- Select your integration (Integration Name)
- Click "Confirm"
Get your database ID:
- Open your Notion database in the browser
- The URL will look like:
https://www.notion.so/sonnpt1301/1c491d31f787802b1231c12f7d4eedb7?v=1c491d31f7878094b5c5000ce9284d43 - Copy the database ID (the part between workspace name (sonnpt1301) and ?): 1c491d31f787802b1231c12f7d4eedb7
Run the setup command:
nvq setup # or vq setup- Enter your Notion API token
- Enter your database ID
- The configuration will be saved in
~/.notion-quiz/config.json
Usage
Start a quiz:
nvq # or vqChoose the time range for words to quiz:
- All words
- Today's words
- Last 7 days
- Last 30 days
- Specific date
Answer the questions:
- Multiple choice: Select the correct definition
- Synonym: Choose the matching synonym
- Matching: Match words with definitions
- Keyword check: Enter the definition
- Fill in the blank: Complete the sentence with the correct word
View your results:
- See your score
- Review correct and incorrect answers
- Get detailed explanations
Export your vocab to import into Quizlet (optional):
- Choose to export to CSV
- Result format: Word (word type) - Definition (VN) foundation (n) - nguyên tắc cơ bản hoặc nền tảng của một thứ gì đó reinforce (v) - làm cho thứ gì đó mạnh hơn hoặc hiệu quả hơn, củng cố, cải thiện give a lift back (Idiom) - chở ai đó quay trở lại nơi họ cần đến jump the gun (Idiom) - hành động quá sớm hoặc trước thời điểm thích hợp screw up (Phrasal verb) - làm rối tung, mắc lỗi hoặc làm hỏng việc overstep (v) - vượt quá giới hạn cho phép hoặc chấp nhận được hold your horses (Idiom) - dùng để bảo ai đó chậm lại hoặc kiên nhẫn hơn headquarters (n) - trụ sở chính hoặc trung tâm điều hành của một tổ chức hoặc công ty
License
MIT
