Logo Lanfrica

23stilinski/Swahili

Domain:

natural language processing

Record type:

software
Creator:
23s
Host:
# 🌍 Kujifunza Kiswahili An interactive Swahili learning website β€” built to grow week by week. --- ## πŸ“ Project Structure ``` kiswahili/ β”‚ β”œβ”€β”€ index.html ← The main page (don't edit this often) β”‚ β”œβ”€β”€ css/ β”‚ └── style.css ← All the site styling β”‚ β”œβ”€β”€ js/ β”‚ └── main.js ← All the site logic + LESSON REGISTRY β”‚ └── lessons/ ← πŸ“‚ PUT ALL YOUR LESSON FILES HERE β”œβ”€β”€ swahili_tenses_lesson.html β”œβ”€β”€ swahili_negation.html β”œβ”€β”€ swahili_sentence_structure.html β”œβ”€β”€ swahili_object_infixes.html β”œβ”€β”€ swahili_pa_ku_mu.html β”œβ”€β”€ swahili_a_of_association.html β”œβ”€β”€ swahili_word_order.html β”œβ”€β”€ swahili_body_lesson.html β”œβ”€β”€ swahili_animal_game.html └── swahili_body_parts_game.html ``` --- ## βž• How to Add a New Lesson Each Week ### Step 1 β€” Create your lesson file Put your new HTML lesson file in the `/lessons/` folder. Name it something clear, like `week8_colours.html`. ### Step 2 β€” Register it in main.js Open `js/main.js` and add a new entry to the `LESSONS` array at the top: ```js { id: 'colours', // unique ID, no spaces title: 'Colours β€” Rangi', // title shown on the card description: 'Learn all colours...', // short description icon: '🎨', // emoji category: 'vocab', // 'grammar', 'vocab', or 'game' badge: 'VOCAB', // badge text on card week: 8, // week number file: 'lessons/week8_colours.html', // path to your file tags: ['colours', 'rangi', 'red'], // search keywords isNew: true, // shows NEW badge (set to false after a week) }, ``` ### Step 3 β€” Save, commit, push That's it! The card and sidebar item appear automatically. --- ## πŸ—‚ Categories | Category | Used for | Colour | |-----------|-----------------------------------|--------| | `grammar` | Grammar rules & references | Blue | | `vocab` | Vocabulary lists & word groups | Orange | | `game` …