nkowaokwu / igbo_api

An API exposing Igbo words, definitions, and more
https://igboapi.com
Apache License 2.0
316 stars 141 forks source link

Add `tenses` field on Word document #442

Closed ijemmao closed 2 years ago

ijemmao commented 2 years ago

Is your feature request related to a problem? Please describe. The Igbo API should save all conjugated versions of a verb word document in MongoDB.

Describe the solution you'd like

  1. Add a new tenses field on the Word Mongoose schema.
  2. Create a new migrate-mongo migration script that updates all Word documents to include the tenses field and automatically conjugates all verbs
    • Use the Igbo API Verb Inflections exploration document to follow the Igbo verb conjugation rules
    • You will need to create a new script that will, when given a particular type of verb (i.e. passive, medial, active), conjugate the verb into the different listed tenses.
  3. Update Mocha tests to expect the new tenses field on word documents

The value of tenses will be an object. Where each key is the verb tense name (i.e. past, present, future, etc.) and the value is the conjugated verb (i.e. ran, run, will run?)

Use this Igbo API Verb Inflections exploration document that lists out all the different types of verb tenses.

Describe alternatives you've considered N/A

Additional context

chialuka commented 2 years ago

I'd like to work on this 🙂