verb-master

Practice different formality levels, tenses, and grammar forms for Korean verbs
git clone git@knot.brookjeynes.dev:did:plc:qr52v73pdmgppmvnpjwa5viw
Log | Files | Refs | README | LICENSE

types.js (2346B)


      1 /** 
      2  * @typedef {Object} DB
      3  * @property {Word[]} words
      4  */
      5 
      6 /**
      7  * @typedef {Object} Word
      8  * @property {string} text
      9  * @property {number | null} kimchiLevel
     10  */
     11 
     12 /** 
     13  * @typedef {Object} DBSet
     14  * @property {boolean} enabled
     15  * @property {string} name
     16  * @property {DB} dataset
     17  * @property {boolean} isCustom
     18  */
     19 
     20 /**
     21  * @typedef {Object} TenseOption
     22  * @property {boolean} enabled
     23  * @property {string} example
     24  */
     25 
     26 /**
     27  * @typedef {Object} Config
     28  * @property {Object.<Tense, TenseOption>} tenses
     29  * @property {Object.<string, DBSet>} datasets
     30  */
     31 
     32 /**
     33  * @typedef {Object} WordConjugation
     34  * @property {Word} word
     35  * @property {Conjugation} conjugation
     36  */
     37 
     38 /**
     39  * @typedef {Object} Conjugation
     40  * @property {string} tense
     41  * @property {string} conjugation
     42  * @property {string[]} reasons
     43  */
     44 
     45 /**
     46  * @typedef {
     47  *   | "declarative present informal low"
     48  *   | "declarative present informal high"
     49  *   | "declarative present formal low"
     50  *   | "declarative present formal high"
     51  *   | "declarative past informal low"
     52  *   | "declarative past informal high"
     53  *   | "declarative past formal low"
     54  *   | "declarative past formal high"
     55  *   | "declarative future informal low"
     56  *   | "declarative future informal high"
     57  *   | "declarative future formal low"
     58  *   | "declarative future formal high"
     59  *   | "declarative future conditional informal low"
     60  *   | "declarative future conditional informal high"
     61  *   | "declarative future conditional formal low"
     62  *   | "declarative future conditional formal high"
     63  *   | "inquisitive present informal low"
     64  *   | "inquisitive present informal high"
     65  *   | "inquisitive present formal low"
     66  *   | "inquisitive present formal high"
     67  *   | "inquisitive past informal low"
     68  *   | "inquisitive past informal high"
     69  *   | "inquisitive past formal low"
     70  *   | "inquisitive past formal high"
     71  *   | "imperative present informal low"
     72  *   | "imperative present informal high"
     73  *   | "imperative present formal low"
     74  *   | "imperative present formal high"
     75  *   | "propositive present informal low"
     76  *   | "propositive present informal high"
     77  *   | "propositive present formal low"
     78  *   | "propositive present formal high"
     79  *   | "connective if"
     80  *   | "connective and"
     81  *   | "nominal ing"
     82  * } Tense
     83  */
     84 
     85 /**
     86  * @typedef {Object} KimchiCSVRow
     87  * @property {string} word
     88  * @property {number} kimchiLevel
     89  */