Git Product home page Git Product logo

goodbye_package's Introduction

Synopsis Generator

This script is designed to generates synopses for English and Latin words. It takes an English word, a list of Latin words, a tense, and an optional question type and chart as input and produces an output file containing the conjugation synopses.

Prerequisites

  • Python 3.x

Installation

  1. Clone the repository or download the script file.

  2. Install the required dependencies by running the following command:

    pip3 install -r requirements.txt

    OR

    pip install -r requirements.txt
  3. Place the necessary data files in the appropriate directories:

    • Place question type files within the data/question-types subdirectory. (you can create new ones by copying the default json file and modifying it, it will recognize it automatically and can be used as soon as the file is added to the subdirectory)

Usage

Run the script with the following command:

python3 conjugation_synopsis.py "english word" "latin words" "tense" "question type" "chart"

OR

python3
from synopsis_generator import *
generate_synopsis(english_word, tense, latin_words, chart = None,  question_type = 'default')
  • english word: The singular form of the English word.

  • latin words: Four Latin words separated by spaces.

  • tense: The tense to generate conjugation synopses for. Use the following format: [1st singular, 1st plural, 2nd singular, 2nd plural, 3rd singular, 3rd plural].

  • question type (optional): The type of question to generate. If not provided, the default question type will be used. Additional question types can be added to the data/question-types directory.

  • chart (optional): The specific conjugation chart to use. If not provided, the script will automatically determine the appropriate chart based on the given Latin words.

Note: Ensure that you enclose the arguments in quotation marks.

Examples

  • Generate conjugation synopses for the word "free" in the 1st singular with Latin words "līberō līberāre līberāvī līberātus":
python3 synopsis_generator.py "free" "līberō līberāre līberāvī līberātus" "1st singular"
  • Generate conjugation synopses with a custom question type:
python3 synopsis_generator.py "free" "līberō līberāre līberāvī līberātus" "1st singular" "custom question chart" 
  • Generate conjugation synopses with a specific chart:
python3 synopsis_generator.py "free" "līberō līberāre līberāvī līberātus" "1st singular" "default" "chart type"

Help

To display the help message, use one of the following commands:

python3 conjugation_synopsis.py -h
python3 conjugation_synopsis.py --h
python3 conjugation_synopsis.py -help
python3 conjugation_synopsis.py --help

The help message provides information on the command usage and arguments.

Note: The script assumes a Unix-like operating system by default. If you're using a different operating system, modify the subdirectory variable in the script accordingly.

goodbye_package's People

Contributors

will-hellinger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.