Skip to content

Latest commit

 

History

History
468 lines (310 loc) · 20.6 KB

File metadata and controls

468 lines (310 loc) · 20.6 KB

User Guide

Team Name: AY2021S1-CS2103T-T09-4 Since: August 2020

Table of Contents

1. What is GreenTea? (Gabriel)

GreenTea is a desktop app for learning a new language, optimized for use via a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). This app is great for users who wish to optimise their time learning a new language, but often struggle due to the difficulty of remembering new vocabulary. For many learners, vocabulary remains the most challenging aspect of learning a new language. We felt that we could help learners struggling with vocabulary to learn the language more efficiently. Therefore, GreenTea uses a proven memory retention system known as the Leitner System and implements it in the context of a FlashCard game.

Fun Fact: You may be wondering, why did we choose the name GreenTea? Well, in the initial stages of development, the app was intended for users looking to learn Japanese, hence the name GreenTea. Although the application now allows for the learning of many languages, we kept the name GreenTea to denote the cultural journey a user undertakes when using this application.

In this User Guide (UG), you will learn about the various commands and actions that would allow you to use GreenTea seamlessly and have an enjoyable journey with it.

GreenTea Figure 1. GreenTea's Graphical User Interface (GUI)

2. About This Document (Gabriel)

Welcome to the GreenTea User Guide!

We at GreenTea are happy that you have taken your first few steps towards optimising your learning. We at GreenTea know that learning a new language can be hard and intimidating. Trust us when we say we know exactly what you're going through and we feel frustrated just as much you do.

That's why here at GreenTea, we have come up with this neat user guide to help you hit the ground running. With this foolproof User Guide, learning a new language will be as relaxing as drinking a hot cup of GreenTea.

3. Getting Started (Gabriel and Vignesh)

Greetings! This chapter will be on helping you get started with using GreenTea. In this chapter, we will be covering installation, explanation of the GUI and basic commands needed to use GreenTea.

Before you can start using GreenTea, you will need to ensure that Java 11 is installed on your computer.

To start using GreenTea:

  1. Download the latest jar file here
  2. Copy the jar file to your folder of choice (we recommend on your desktop!)
  3. Double-Click the file to start the application. The GUI should appear in a few seconds and it should look like Figure 2.

Figure 2. GreenTea's GUI

GreenTea Figure 3. Annotated GUI

Figure 3 is simply an annotated version of Figure 2 that we will use to explain the GUI. There are four main components to the GUI. The deck list, the tab panels, the result display and the command box

  1. Deck List - The deck list displays all the decks that you currently have in GreenTea. A deck is a list of entries and an entry consists of a word and a translation. It will update as you keep adding decks.

  2. Tab Panels - The main features of GreenTea are separated into tabs. The tabs will change automatically, depending on your commands, so you do not need to worry about changing the tabs manually. GreenTea currently has four different tabs.

    1. Start Tab: Consists of the welcome page that is shown on startup of the application.
    2. Entries Tab: Displays all the entries of a selected deck.
    3. Quiz Tab: Displays the current.
    4. Statistics Tab: Displays the score of your past attempts of the current selected deck or overall.

    We understand that you might be curious about each part of the GUI, don't worry, in this chapter we will briefly look through every part of the GUI.

  3. Result Display - The result display is where the outcome of your commands are shown. GreenTea will feedback to you if your command has been successfully carried out, or if there are errors in your command formats.

  4. Command Box - The command box is where you type in your commands. Pressing enter on your keyboard will execute the commands.

  5. Try typing these commands to start playing with GreenTea

    • new Japanese Animals

    GreenTea Figure 4. New deck called Japanese Animals

    Your screen should now look like Figure 4. The previous command that you entered created a new Deck in GreenTea called Japanese Animals. Notice that the Deck List has been updated to include a new Deck called Japanese Animals with an index 1.

    • select 1

    GreenTea Figure 5. Selecting the first deck in the list

    Your screen should now look like Figure 5. The previous command that you entered made GreenTea select the deck with index 1 which happens to be the Deck Japanese Animals that you have created previously. Notice that the current tab has automatically changed to the Entries Tab. The Entries Tab is empty because there are currently no entries in Japanese Animals. Let's fix that shall we?

    • add w/Dolphin t/Iruka

    GreenTea Figure 6. Adding an Entry

    Your screen should now look like Figure 6. The previous command that you entered added a new Entry into the selected deck. The entry consists of the word Dolphin and the translation Iruka. Notice that the Entries Tab, which displays the current selected deck, has updated accordingly. Now, let us try editing the entry using the japanese characters for Dolphin instead of the translation Iruka.

    • edit 1 t/イルカ

    GreenTea Figure 7. Editing an entry

    Your screen should look like Figure 7. The previous command that you entered modified the translation of the entry from Iruka to イルカ. Notice that now the first entry in the entries tab has the word Dolphin and the translation イルカ. Congratulations! You have now created a brand new deck called Japanese Animals with a new entry of the word Dolphin and the translation イルカ. Try adding a few more entries into GreenTea!

  6. Hopefully you have written a few more entries into GreenTea. We went ahead and added two new entries into the Deck Japanese Animals.

    Figure 8. Added more entries into Japanese Animals

    Figure 8 is a screenshot of our latest Deck containing the new entries that we have written. Now, Let us try to play a game of FlashCards to memorise what we have written. Note than in our application, we use the terms Flashcards and Quizzes interchangeably. Try typing and entering the following commands into GreenTea.

    • /play

    Figure 9. Playing a Game of Flashcards

    Your screen should now look similar to Figure 9. However, the translation given on the left side of the Quiz Tab might be different depending on the entries you have written into Japanese Animals.

    The command you entered previously had switched GreenTea into Quiz mode. This means that all commands written from now on will be treated as answers to the question given by GreenTea. Also, note that the tab had switched to the Quiz Tab.

    From Figure 9, we can see that GreenTea is asking us the question "What is the english word for the translation イルカ?" We already know that the correct word is Dolphin. However, let us try typing the wrong answer dog.

    Figure 10. Wrong answer given

    GreenTea has accepted the answer we had given it and has updated the translation shown on the Quiz Tab. Do take note that the right side of the Quiz Tab displays your history of answers to the quiz including the translation, the correct word/answer as well as the given answer.

    Finishing the quiz by answering the rest of the questions will bring you out of Quiz mode and you would be able to use your regular commands such as play or edit again.

    Try playing the quiz a few more times!

  7. Have you tried quizzing yourself a few more times? aren't you curious about your progress so far? Thankfully, GreenTea has been keeping track of your scores in the background and can display in the form of a graph. Try typing the following commands into GreenTea!

    • stats 1

    Figure 11. Statistics of Deck 1

    Your screen should now look similar to Figure 11. The previous command that you entered changed the current tab into the Statistics Tab of Deck 1 which refers to the Deck Japanese Animals. In this tab, you can see your score history as well as the time stamp of each attempt. Based on our progression, we think we need a little bit more practise with our deck!

  8. Congratulations! We have come to the end of this chapter. We hope that you have learned the basic of using GreenTea but if you are still itching to bring your learning to the next level, there are still a ton of commands with complete explanations to learn in Chapter 6.

4. Using This Guide (Melanie)

In this chapter, we will get familiar with the symbols and command format used in this user guide.

Before progressing further, we strongly recommend going through Chapter 3 first.

4.1 Symbols

ℹ️ This symbol represents important information

💡 This symbol represents additional information

4.2 Command Format

Every feature can be accessed with a command and every command has a certain format that has to be followed. The following is an explanation of how commands are described in this document.

4.2.1 Arrowed Brackets

Words in <Arrowed Brackets> are compulsory inputs supplied by you. They are generally names or translations that are unique to each input.

E.g new <NAME OF NEW DECK> is a command that creates a new deck with the input, NAME OF NEW DECK

4.2.2 Square Brackets

Words in [Square Brackets] are optional inputs. They may or may not be added but at least one is required

E.g The edit command edit 1 [w/word] [t/translation] can be written as edit 1 [w/word] or edit 1 [t/translation] or edit 1 [w/word] [t/translation] but cannot be written as edit 1

5. Features

In this chapter, we will be going into detail each feature of GreenTea, along with their command format and relevant examples.

5.1 Deck Commands (Melanie)

As mentioned earlier, Decks are the foundation to GreenTea. A deck is simply a list of entries you write into GreenTea. A deck can be your favourite Korean Dramas or a list of Japanese Words.

5.1.1 Creating a deck: new

Creates a new empty deck with given name.

Format: new <NAME OF NEW DECK>

Examples:

  • new Korean Dramas
  • new Japanese Words

Result:

GreenTea Figure 7. Result of creating new decks

ℹ️ Note: The name of the deck cannot be more than 100 characters long.

5.1.2 Removing a deck: remove

Removes a deck with the given index.

Format: remove <INDEX OF DECK>

ℹ️ Note: To get the index of a deck, you may view it on the GUI. It would be the number displayed beside a particular deck.

Example: remove 1

Before a deck is removed: GreenTea Figure 8: GUI before a deck is removed

Result:

GreenTea Figure 9. Result of removing a deck

5.1.3 Selecting a deck: select

Selects a deck with the given index and lists all of its entries.

Format: select <INDEX OF DECK>

ℹ️ Note: The index of the deck is the number displayed it on the user interface.

Examples: select 1

Result: GreenTea Figure 10: Result of selecting a deck

5.2 Entry Commands (Gabriel)

Entries are what make up a deck. They are the words or phrases that you wish to memorise in GreenTea. An entry is made up of two parts; the word and the translation. The word is written in the language you are most familiar and the translation is written in the language you wish to learn. In this User Guide, we will be assuming the language for word will be in English.

ℹ️ Note: Before you start giving entry commands, remember to select a deck first!

💡 Fun fact: Did you know GreenTea supports over 100 languages including Telugu, Welsh and Xamtanga? To see if your chosen language is supported, click here!

5.2.1 Adding a new entry: add (Vignesh)

Adds a new entry with the given word and translation.

Format: add w/<WORD> t/<TRANSLATION>

Examples:

  • add w/Fruits t/果物
  • add w/Phone t/電話

Result:

GreenTea Figure 11: Result of adding an entry

ℹ️ Note: A word cannot be more than 200 characters long. A translation cannot be more than 200 characters long

5.2.2 Editing an entry: edit (Vignesh)

Edits an entry with the given index using the given word or translation or both.

Format: edit 1 [w/word] [t/translation]

ℹ️ Note: The word and translation are both optional parameters. You can supply one parameter or both parameters but you must supply at least one.

Examples:

  • edit 1 w/hello
  • edit 1 t/こんにちは
  • edit 2 w/world t/世界

Result:

GreenTea Figure 12. Result of editing an entry

5.2.3 Deleting an entry: delete (Vignesh)

Deletes the entry with the given index.

Format: delete <INDEX>

Example: delete 1

Before an entry is deleted:

GreenTea Figure 13. GUI before an entry is deleted

Result: GreenTea Figure 14. Result of deleting an entry

5.3 Play Commands (Georgie)

Memory retention is the main goal of GreenTea. Thankfully, we have gotten rid of all the complexities behind starting a new FlashCard game. In fact, there are only two commands in this section, play and /stop.

5.3.1 Play a Game (Georgie)

Plays the current deck. GreenTea will do a shuffle of the current deck and asks you what is the the english word of a randomly selected translation. Your score will be recorded and displayed to you at the end of the game. Note the slash / in the command.

Format: /play

ℹ️ Note: Before you start playing a new game, remember to select a deck first!

Result: GreenTea Figure 15. Result of playing a game

5.3.2 Stop a Game (Georgie)

Stop the current game prematurely. Note the slash / in the command.

Format: /stop

ℹ️ Note: Before you start playing a new game, remember to select a deck first!

Result: GreenTea Figure 16. Result of stopping a game

5.4 Extra Commands (Georgie)

These are some extra commands that you can access at any point in the application except when you are currently playing a game.

5.4.1 Viewing help: help

Shows a cheat-sheet of commands in addition to a link to this User Guide.

Format: help

Result:

GreenTea

5.4.2 Exiting the program: exit

Exits the program.

Format: exit

Result: Program will be closed

6. Statistics (Melanie)

Statistics are how you get to see your own progression as you continuously build and play GreenTea. The statistics tab displays the scores of games up to your last 10 attempts in the form of a line graph. You can view the statistics of a single deck or the statistics across all your decks.

To view statistics across all decks:

Format: stats

Result:

GreenTea Figure 18. Result of viewing statistics across all decks

To view statistics of a single deck:

Format: stats <INDEX>

Example: stats 1

Result:

GreenTea Figure 19. Result of viewing statistics of a single deck

ℹ️ Note: In order to view your statistics, you must first play a game!

7. FAQ (Gabriel)

Q: Will my score be recorded if I stop a game before I finish it?
A: Your score will be displayed to you after you pass a stop command but it will not be recorded in the statistics tab

8. Command Summary (Gabriel)

Action Format Examples Remarks
New new <NAME OF NEW DECK> new Japanese-Animals Creates a New Deck With the Given Name
Remove remove <INDEX OF DECK> remove 1 Removes the Deck with the Given Index
Select select <INDEX OF DECK> select 1 Selects the Deck with the Given Index and Lists All It's Entries
Add add w/<WORD> t/<TRANSLATION> add w/Hello t/hola Adds an Entry with the Given Word and Translation to the Selected Deck
Edit edit 1 [w/word] [t/translation] edit 1 w/hello t/こんにちは Edits the Entry with the Given Index Using the Given Values
Delete delete <INDEX> delete 3 Deletes the Entry with the Given Index
Play /play Starts a New FlashCard Game with the Selected Deck
Stop /stop Stops an Existing Game
Clear clear Deletes All Decks and Entries
Help help Opens Our User Guide in the Application
Exit exit Saves and Exits the Program