Overview

Package

antonyms

Description

A tiny program to sharpen your skills in Dutch language.

Reads the CSV file with questions and answers (word <-> antonym), pops them one by one in terminal and asks user to give his answer. Keeps track of correct and incorrect answers. At the end prints statistics.

Usage

It's recommended to prepend a \ (single backslash) to argument values.

Command line syntax

usage: antonyms.py [-h] [-f SOURCE_FILENAME] [-d DELIMITER] [-q QUOTECHAR]
[-l LOG_FILENAME]
optional arguments:
-h, --help show this help message and exit
-f SOURCE_FILENAME, --file SOURCE_FILENAME
 Source CSV file to read from
-d DELIMITER, --delimiter DELIMITER
 CSV delimiter
-q QUOTECHAR, --quotechar QUOTECHAR
 CSV quote char
-r REMOVE_IF_ANSWERED_WRONG, --remove-if-answered-wrong REMOVE_IF_ANSWERED_WRONG
 Remove if answered wrong
-l LOG_FILENAME, --log LOG_FILENAME
 Log to file to write to

Examples

From your terminal (console) type:

$ python anonyms.py

With custom file:

$ python anonyms.py -f your-custom-file.csv

With custom file and CSV delimiter:

$ python anonyms.py -f your-custom-file.csv -d \,

With custom file and CSV quote char:

$ python anonyms.py -f your-custom-file.csv -q \"

With custom file, CSV delimiter and quote char:

$ python anonyms.py -f your-custom-file.csv -d \, -q \"

Interactive console

The following commands are always available in the interactive console

  • \st (single backslash + s): Displays statistics.
  • \q (single backslash + q): Stops the test.

Dictionaries

Dictionaries should be in a valid CSV format. Place your files in dictionary directory.

Default format settings

  • Sepated by comma (,) - so called delimiter
  • Text delimiter double quote (") - so called quote char

Example

  • dik, dun
  • klein, groot
  • nauw, breed
  • lang, kort