diff options
author | James Maa <jmaa@berkeley.edu> | 2024-06-24 09:56:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 16:56:02 +0000 |
commit | cfa33c8f5d77b2365abc3715c31d18f52135897b (patch) | |
tree | 7d9d7037f29e86677f5cd0d089866f457b2149b4 /test/language | |
parent | b584c5440721fa7399564ced57f134fd5333d20c (diff) |
More Spanish transforms (#1100)
* Preterite and spanish bench
* More spanish forms
* Rename
Diffstat (limited to 'test/language')
-rw-r--r-- | test/language/spanish-transforms.test.js | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/test/language/spanish-transforms.test.js b/test/language/spanish-transforms.test.js index 0af2587a..53ff3e2c 100644 --- a/test/language/spanish-transforms.test.js +++ b/test/language/spanish-transforms.test.js @@ -93,6 +93,149 @@ const tests = [ {term: 'haber', source: 'he', rule: 'v', reasons: ['present indicative']}, ], }, + { + category: 'preterite', + valid: true, + tests: [ + {term: 'hablar', source: 'hablé', rule: 'v', reasons: ['preterite']}, + {term: 'hablar', source: 'hablaste', rule: 'v', reasons: ['preterite']}, + {term: 'hablar', source: 'habló', rule: 'v', reasons: ['preterite']}, + {term: 'hablar', source: 'hablamos', rule: 'v', reasons: ['preterite']}, + {term: 'hablar', source: 'hablasteis', rule: 'v', reasons: ['preterite']}, + {term: 'hablar', source: 'hablaron', rule: 'v', reasons: ['preterite']}, + {term: 'comer', source: 'comí', rule: 'v', reasons: ['preterite']}, + {term: 'comer', source: 'comiste', rule: 'v', reasons: ['preterite']}, + {term: 'comer', source: 'comió', rule: 'v', reasons: ['preterite']}, + {term: 'comer', source: 'comimos', rule: 'v', reasons: ['preterite']}, + {term: 'comer', source: 'comisteis', rule: 'v', reasons: ['preterite']}, + {term: 'comer', source: 'comieron', rule: 'v', reasons: ['preterite']}, + {term: 'vivir', source: 'viví', rule: 'v', reasons: ['preterite']}, + {term: 'vivir', source: 'viviste', rule: 'v', reasons: ['preterite']}, + {term: 'vivir', source: 'vivió', rule: 'v', reasons: ['preterite']}, + {term: 'vivir', source: 'vivimos', rule: 'v', reasons: ['preterite']}, + {term: 'vivir', source: 'vivisteis', rule: 'v', reasons: ['preterite']}, + {term: 'vivir', source: 'vivieron', rule: 'v', reasons: ['preterite']}, + {term: 'tener', source: 'tuve', rule: 'v', reasons: ['preterite']}, + ], + }, + { + category: 'imperfect', + valid: true, + tests: [ + {term: 'hablar', source: 'hablaba', rule: 'v', reasons: ['imperfect']}, + {term: 'hablar', source: 'hablabas', rule: 'v', reasons: ['imperfect']}, + {term: 'hablar', source: 'hablaba', rule: 'v', reasons: ['imperfect']}, + {term: 'hablar', source: 'hablábamos', rule: 'v', reasons: ['imperfect']}, + {term: 'hablar', source: 'hablabais', rule: 'v', reasons: ['imperfect']}, + {term: 'hablar', source: 'hablaban', rule: 'v', reasons: ['imperfect']}, + {term: 'comer', source: 'comía', rule: 'v', reasons: ['imperfect']}, + {term: 'comer', source: 'comías', rule: 'v', reasons: ['imperfect']}, + {term: 'comer', source: 'comía', rule: 'v', reasons: ['imperfect']}, + {term: 'comer', source: 'comíamos', rule: 'v', reasons: ['imperfect']}, + {term: 'comer', source: 'comíais', rule: 'v', reasons: ['imperfect']}, + {term: 'comer', source: 'comían', rule: 'v', reasons: ['imperfect']}, + {term: 'vivir', source: 'vivía', rule: 'v', reasons: ['imperfect']}, + {term: 'vivir', source: 'vivías', rule: 'v', reasons: ['imperfect']}, + {term: 'vivir', source: 'vivía', rule: 'v', reasons: ['imperfect']}, + {term: 'vivir', source: 'vivíamos', rule: 'v', reasons: ['imperfect']}, + {term: 'vivir', source: 'vivíais', rule: 'v', reasons: ['imperfect']}, + {term: 'vivir', source: 'vivían', rule: 'v', reasons: ['imperfect']}, + ], + }, + { + category: 'progressive', + valid: true, + tests: [ + {term: 'hablar', source: 'hablando', rule: 'v', reasons: ['progressive']}, + {term: 'comer', source: 'comiendo', rule: 'v', reasons: ['progressive']}, + {term: 'vivir', source: 'viviendo', rule: 'v', reasons: ['progressive']}, + ], + }, + { + category: 'imperative', + valid: true, + tests: [ + {term: 'hablar', source: 'habla', rule: 'v', reasons: ['imperative']}, + {term: 'hablar', source: 'hablad', rule: 'v', reasons: ['imperative']}, + {term: 'comer', source: 'come', rule: 'v', reasons: ['imperative']}, + {term: 'comer', source: 'comed', rule: 'v', reasons: ['imperative']}, + {term: 'vivir', source: 'vive', rule: 'v', reasons: ['imperative']}, + {term: 'vivir', source: 'vivid', rule: 'v', reasons: ['imperative']}, + ], + }, + { + category: 'conditional', + valid: true, + tests: [ + {term: 'hablar', source: 'hablaría', rule: 'v', reasons: ['conditional']}, + {term: 'hablar', source: 'hablarías', rule: 'v', reasons: ['conditional']}, + {term: 'hablar', source: 'hablaría', rule: 'v', reasons: ['conditional']}, + {term: 'hablar', source: 'hablaríamos', rule: 'v', reasons: ['conditional']}, + {term: 'hablar', source: 'hablaríais', rule: 'v', reasons: ['conditional']}, + {term: 'hablar', source: 'hablarían', rule: 'v', reasons: ['conditional']}, + {term: 'comer', source: 'comería', rule: 'v', reasons: ['conditional']}, + {term: 'comer', source: 'comerías', rule: 'v', reasons: ['conditional']}, + {term: 'comer', source: 'comería', rule: 'v', reasons: ['conditional']}, + {term: 'comer', source: 'comeríamos', rule: 'v', reasons: ['conditional']}, + {term: 'comer', source: 'comeríais', rule: 'v', reasons: ['conditional']}, + {term: 'comer', source: 'comerían', rule: 'v', reasons: ['conditional']}, + {term: 'vivir', source: 'viviría', rule: 'v', reasons: ['conditional']}, + {term: 'vivir', source: 'vivirías', rule: 'v', reasons: ['conditional']}, + {term: 'vivir', source: 'viviría', rule: 'v', reasons: ['conditional']}, + {term: 'vivir', source: 'viviríamos', rule: 'v', reasons: ['conditional']}, + {term: 'vivir', source: 'viviríais', rule: 'v', reasons: ['conditional']}, + {term: 'vivir', source: 'vivirían', rule: 'v', reasons: ['conditional']}, + ], + }, + { + category: 'future', + valid: true, + tests: [ + {term: 'hablar', source: 'hablaré', rule: 'v', reasons: ['future']}, + {term: 'hablar', source: 'hablarás', rule: 'v', reasons: ['future']}, + {term: 'hablar', source: 'hablará', rule: 'v', reasons: ['future']}, + {term: 'hablar', source: 'hablaremos', rule: 'v', reasons: ['future']}, + {term: 'hablar', source: 'hablaréis', rule: 'v', reasons: ['future']}, + {term: 'hablar', source: 'hablarán', rule: 'v', reasons: ['future']}, + {term: 'comer', source: 'comeré', rule: 'v', reasons: ['future']}, + {term: 'comer', source: 'comerás', rule: 'v', reasons: ['future']}, + {term: 'comer', source: 'comerá', rule: 'v', reasons: ['future']}, + {term: 'comer', source: 'comeremos', rule: 'v', reasons: ['future']}, + {term: 'comer', source: 'comeréis', rule: 'v', reasons: ['future']}, + {term: 'comer', source: 'comerán', rule: 'v', reasons: ['future']}, + {term: 'vivir', source: 'viviré', rule: 'v', reasons: ['future']}, + {term: 'vivir', source: 'vivirás', rule: 'v', reasons: ['future']}, + {term: 'vivir', source: 'vivirá', rule: 'v', reasons: ['future']}, + {term: 'vivir', source: 'viviremos', rule: 'v', reasons: ['future']}, + {term: 'vivir', source: 'viviréis', rule: 'v', reasons: ['future']}, + {term: 'vivir', source: 'vivirán', rule: 'v', reasons: ['future']}, + ], + }, + { + category: 'present subjunctive', + valid: true, + tests: [ + {term: 'hablar', source: 'hable', rule: 'v', reasons: ['present subjunctive']}, + {term: 'hablar', source: 'hables', rule: 'v', reasons: ['present subjunctive']}, + {term: 'hablar', source: 'hable', rule: 'v', reasons: ['present subjunctive']}, + {term: 'hablar', source: 'hablemos', rule: 'v', reasons: ['present subjunctive']}, + {term: 'hablar', source: 'habléis', rule: 'v', reasons: ['present subjunctive']}, + {term: 'hablar', source: 'hablen', rule: 'v', reasons: ['present subjunctive']}, + {term: 'comer', source: 'coma', rule: 'v', reasons: ['present subjunctive']}, + {term: 'comer', source: 'comas', rule: 'v', reasons: ['present subjunctive']}, + {term: 'comer', source: 'coma', rule: 'v', reasons: ['present subjunctive']}, + {term: 'comer', source: 'comamos', rule: 'v', reasons: ['present subjunctive']}, + {term: 'comer', source: 'comáis', rule: 'v', reasons: ['present subjunctive']}, + {term: 'comer', source: 'coman', rule: 'v', reasons: ['present subjunctive']}, + {term: 'vivir', source: 'viva', rule: 'v', reasons: ['present subjunctive']}, + {term: 'vivir', source: 'vivas', rule: 'v', reasons: ['present subjunctive']}, + {term: 'vivir', source: 'viva', rule: 'v', reasons: ['present subjunctive']}, + {term: 'vivir', source: 'vivamos', rule: 'v', reasons: ['present subjunctive']}, + {term: 'vivir', source: 'viváis', rule: 'v', reasons: ['present subjunctive']}, + {term: 'vivir', source: 'vivan', rule: 'v', reasons: ['present subjunctive']}, + ], + }, + ]; const languageTransformer = new LanguageTransformer(); |