nihongo

Crates.ionihongo
lib.rsnihongo
version0.1.0
sourcesrc
created_at2024-08-04 16:23:37.353912
updated_at2024-08-04 16:23:37.353912
descriptionLearn Japanese words with French translations
homepagehttps://github.com/aeyoll/nihongo-rs
repositoryhttps://github.com/aeyoll/nihongo-rs
max_upload_size
id1325116
size27,580
Jean-Philippe Bidegain (aeyoll)

documentation

README

Japanese-French Vocabulary

A command-line tool for learning Japanese words with French translations.

Description

This Rust program helps users learn Japanese vocabulary by allowing them to add Japanese words with their French translations and take quizzes to test their knowledge. It uses a JSON file to store the vocabulary and provides two main functionalities:

  1. Adding new words to the vocabulary list
  2. Taking a quiz based on the stored words

Features

  • Add Japanese words with their French translations
  • Store vocabulary in a JSON file
  • Take a 10-question quiz with randomly selected words
  • Immediate feedback on quiz answers
  • Score tracking for quizzes

Requirements

Installation

From crates.io

cargo install nihongo

From source

  1. Clone this repository:
git clone https://github.com/yourusername/japanese-french-vocabulary.git cd japanese-french-vocabulary
  1. Build the project:
cargo build --release

Usage

Adding a word

To add a new word to your vocabulary list: cargo run -- add <japanese_word> <french_translation>

Example:

nihongo add

Taking a quiz

To start a 10-question quiz:

nihongo quiz

Note: You need to have at least 10 words in your vocabulary list before you can take a quiz.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 0

cargo fmt