Skip to content

A web application to conjugate French verbs and test yourself with the built-in quizzing mechanism

Notifications You must be signed in to change notification settings

jroers/verb_conjugator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 1: French Verb Conjugator/List Creator

As seen at this link.

##Description A web application that holds conjugations for French verbs.

The List section allows you to group verbs together for any purpose you might have. E.g. Listing together verbs that will be on your next quiz or exam, study lists for irregular verbs that need to be memorized.

##Tools used:

  1. Mongoose/MongoDB
  2. Express
  3. Body-parser
  4. Nodemon

##What was the process? #Sprint 1:

Store one of each family of verbs (-er, -ir, -re) in French.

Create buttons for each of these base verbs.

When each button is clicked, the database will display the present-tense conjugation for that particular verb.

#Sprint 2: Replace the buttons for an input field/search bar.

Whatever the user inputs will be checked against the database. If the verb exists, it will display the present tense conjugation on the screen. If it doesn't exist, default "not found" text will display on the screen.

Each verb should display with buttons for each tense: Present and Imparfait.

When each button is clicked, the text in the conjugation grid will update to the apropriate information.

#Sprint 3: Added edit buttons that change the conjugations into text boxes. The text boxes pull the initial information from its respective cell of the conjugation grid. This allows the user to make changes to all necessary subjects in this tense prior to saving.

Searching for a verb that has a valid infinitive structure (ends in "ir", "er" or "re") presents a button to create a new verb from the typed infinitive.

Clicking the "Create?" button opens up a Create Verb modal that will populate with manipulations of the typed infinitive.

#Sprint 4: Created secondary html page at the path /lists. This will hold all of the list information that contains verbs.

At the top of the lists page is a list creation form. Currently, the database is fairly small, so the multi-select field works. Research should be done to implement an auto-complete search bar.

Upon submission of a new list, the page will update to show all of the lists.

#Sprint 5: The Edit List button opens up a modal that displays all of the contents of a list.

A user can update the text fields for the list name and description, as well as view the associated verbs.

Next to each individual verb is a red X button that will queue the verb for removal from the list.

Below the list of verbs is a button to add a new verb to the list. When selected, the button will be replaced with a dropdown menu where the user can select a new verb to be added. Then the user can either cancel out of the addition, or save the verb. Once saved, the verb will be added to the end of the verb list, and the "add another verb" button will reappear at the bottom of the list.

Once "Save Changes" is clicked, the information captured in this modal will be sent to the database to update the list, and then repopulate the main page with the most recent list data.

For future development, I would like this list to look through the list of verbs already on the list and update itself to only display content that has not yet been added.

##Trouble spots

  1. I really struggled with thinking through the logic for adding a new verb. Currently what happens is the system is that it populates a conjugation grid with regular conjugations for that verb's family (if it ends in -er, -ir, or -re). Figuring out a way to keep track of the current tense was important as I wanted to think ahead to potentially adding other tenses, and not just keeping it as the present and imparfait. I have a variable that is updated when the user proceeds to the next page, and a function that looks at that number and determines for which tense to prepare the regular conjugations. It took a while to think up, but I like the outcome.
  2. Referencing verbs on a list with mongoose. Remember to call the key in server.js. not the string that is in the ref: field. verbs: [ { type: Schema.Types.ObjectId, ref: 'Verb' }

##Towards the Future: a. QUIZZES!

Currently in the code, I have commented out HTML for the base quiz structure. This information should be hidden on page load, but shown when a "Quiz Me!" button is clicked.

The quiz section will populate with the group of verbs from the parent list.

A user should have the ability to select exactly which verbs they would like to be quizzed on. The selected verbs would then be pushed into an array. If no verb is selected, all verbs on the list would be pushed into the array.

Ideally, there would be an option to specify which tense the user would like to be quizzed on. This would specify the exact path in the verb object from which the quiz screen would populate.

After the user completes the conjugation grid for a particular verb, the system will display the number of correct/incorrect responses that were given.

b. AUTO-COMPLETE FEATURE TO SEARCH BAR

As stated earlier, since the current database doesn't contain a full library of verbs like on sites like Bescherelle's website.

c. USER AUTHENTICATION

Different classes of users for admins/teachers vs. students (one to many relationship).

Teachers, or those with admin classes, would uniquely be allowed to delete verbs from the database. Students shouldn't be able to clear out everyone else's information!.

With users, students would be able to keep their own lists of verbs that could help them study for class exams.

d. MORE TENSES

With an application like this, it can only get better if it captures more information about the verbs that it already has. I'd like to add onto the verb/conjugation schemas such that they capture more information. Some possible options: futur proche, subjonctif, conditionelle

e. MORE USER FRIENDLY

I'd like for each verb to be captured on its own page, so that the user could press the back button to get to the verb they were previously looking at.

###The little things in life: Make it so that the logic for imparfait uses the present-tense nous form and passes it as the stem.

Make it so that changing a field on the create a verb modal will automatically set the irregular flag to true.

I'd like to add in logic to the search bar to have it search for reflexive/reciprocal verbs (these have a prefix that changes along with the subject). The prefixes should display alongside their respective subject.

Aesthetics in general can be improved upon. I tried to line everything up nicely so that it displays correctly for users, but there could definitely be some visual improvements.

About

A web application to conjugate French verbs and test yourself with the built-in quizzing mechanism

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published