commit ab58a25b0c9bdcbc2638b996bfe2868e69dd12cd
parent ab82a2e07199b0c03fd117cdd790d24c132d863c
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date: Wed, 5 Aug 2020 16:42:51 -0700
Implement reflexive verb filter.
Diffstat:
4 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
@@ -51,6 +51,7 @@ Spanish-Quizzer comes with many vocabulary filters. Not all filters may be used
- Imperfect Tense
- Regularity filters
- All Conjugations
+ - Conjugations of reflexive verbs
- Regular Conjugations
- Nonregular Conjugations
- Stem Changing Conjugations
diff --git a/Scripts/Settings.js b/Scripts/Settings.js
@@ -128,6 +128,7 @@ function VerbTenseChanged(filter) {
types[3].disabled = false;
types[4].disabled = false;
types[5].disabled = false;
+ types[6].disabled = false;
// Disable unavailable types
switch(filter.value)
@@ -135,15 +136,16 @@ function VerbTenseChanged(filter) {
case "All Tenses":
break;
case "Present Participles":
- types[4].disabled = true; // Orthographic
- if (types.selectedIndex === 4) {
+ types[1].disabled = true; // Reflexive
+ types[5].disabled = true; // Orthographic
+ if (types.selectedIndex === 1 || types.selectedIndex === 5) {
// Deselect unavailable types
types.selectedIndex = 0
}
break;
case "Present Tense":
- types[4].disabled = true; // Orthographic
- if (types.selectedIndex === 4) {
+ types[5].disabled = true; // Orthographic
+ if (types.selectedIndex === 5) {
// Deselect unavailable types
types.selectedIndex = 0
}
@@ -151,9 +153,9 @@ function VerbTenseChanged(filter) {
case "Preterite Tense":
break;
case "Imperfect Tense":
- types[3].disabled = true; // Stem Changing
- types[4].disabled = true; // Orthographic
- if (types.selectedIndex === 3 || types.selectedIndex === 4) {
+ types[4].disabled = true; // Stem Changing
+ types[5].disabled = true; // Orthographic
+ if (types.selectedIndex === 4 || types.selectedIndex === 5) {
// Deselect unavailable types
types.selectedIndex = 0
}
@@ -364,6 +366,9 @@ function ApplyVerbFilter(terms, filterInfo) {
case "regular":
config.regularity = "Regular";
break;
+ case "reflexive":
+ config.regularity = "Reflexive";
+ break;
case "irregular":
config.regularity = "Irregular";
break;
diff --git a/Vocab/Verbs.csv b/Vocab/Verbs.csv
@@ -23,13 +23,13 @@ To eat,Comer,Regular,Comiendo,Regular,Como,Comes,Come,Comemos,Comen,Regular,Com
To eat breakfast,Desayunar,Regular,Desayunando,Regular,Desayuno,Desayunas,Desayuna,Desayunamos,Desayunan,Regular,Desayuné,Desayunaste,Desayunó,Desayunamos,Desayunaron,Regular,Desayunaba,Desayunabas,Desayunaba,Desayunábamos,Desayunaban
To eat dinner,Cenar,Regular,Cenando,Regular,Ceno,Cenas,Cena,Cenamos,Cenan,Regular,Cené,Cenaste,Cenó,Cenamos,Cenaron,Regular,Cenaba,Cenabas,Cenaba,Cenábamos,Cenaban
To eat lunch,Almorzar,Regular,Almorzando,Stem Changing,Almuerzo,Almuerzas,Almuerza,Almorzamos,Almuerzan,Orthographic,Almorcé,Almorzaste,Almorzó,Almorzamos,Almorzaron,Regular,Almorzaba,Almorzabas,Almorzaba,Almorzábamos,Almorzaban
-To enjoy oneself,Divertirse,Stem Changing,Divirtiendo,Stem Changing,Me divierto,Te diviertes,Se divierte,Nos divertimos,Se divierten,Stem Changing,Me divertí,Te divertiste,Se divirtió,Nos divertimos,Se divirtieron,Regular,Me divertía,Te divertías,Se divertía,Nos divertíamos,Se divertían
-To feel,Sentirse,Stem Changing,Sintiendo,Stem Changing,Me siento,Te sientes,Se siente,Nos sentimos,Se sienten,Stem Changing,Me sentí,Te sentiste,Se sintió,Nos sentimos,Se sintieron,Regular,Me sentía,Te sentías,Se sentía,Nos sentíamos,Se sentían
+To enjoy oneself,Divertirse,Stem Changing,Divirtiendo,"Reflexive, Stem Changing",Me divierto,Te diviertes,Se divierte,Nos divertimos,Se divierten,"Reflexive, Stem Changing",Me divertí,Te divertiste,Se divirtió,Nos divertimos,Se divirtieron,"Reflexive, Regular",Me divertía,Te divertías,Se divertía,Nos divertíamos,Se divertían
+To feel,Sentirse,Stem Changing,Sintiendo,"Reflexive, Stem Changing",Me siento,Te sientes,Se siente,Nos sentimos,Se sienten,"Reflexive, Stem Changing",Me sentí,Te sentiste,Se sintió,Nos sentimos,Se sintieron,"Reflexive, Regular",Me sentía,Te sentías,Se sentía,Nos sentíamos,Se sentían
To find,Encontrar,Regular,Encontrando,Stem Changing,Encuentro,Encuentras,Encuentra,Encontramos,Encuentran,Regular,Encontré,Encontraste,Encontró,Encontramos,Encontraron,Regular,Encontraba,Encontrabas,Encontraba,Encontrábamos,Encontraban
-To get up,Levantarse,Regular,Levantando,Regular,Me levanto,Te levantas,Se levanta,Nos levantamos,Se levantan,Regular,Me levanté,Te levantaste,Se levantó,Nos levantamos,Se levantaron,Regular,Me levantaba,Te levantabas,Se levantaba,Nos levantábamos,Se levantaban
+To get up,Levantarse,Regular,Levantando,"Reflexive, Regular",Me levanto,Te levantas,Se levanta,Nos levantamos,Se levantan,"Reflexive, Regular",Me levanté,Te levantaste,Se levantó,Nos levantamos,Se levantaron,"Reflexive, Regular",Me levantaba,Te levantabas,Se levantaba,Nos levantábamos,Se levantaban
To give,Dar,Regular,Dando,Irregular,Doy,Das,Da,Damos,Dan,Irregular,Di,Diste,Dio,Dimos,Dieron,Regular,Daba,Dabas,Daba,Dábamos,Daban
To go,Ir,Irregular,Yendo,Irregular,Voy,Vas,Va,Vamos,Van,Irregular,Fui,Fuiste,Fue,Fuimos,Fueron,Irregular,Iba,Ibas,Iba,Íbamos,Iban
-To go to bed,Acostarse,Regular,Acostando,Stem Changing,Me acuesto,Te acuestas,Se acuesta,Nos acostamos,Se acuestan,Regular,Me acosté,Te acostaste,Se acostó,Nos acostamos,Se acostaron,Regular,Me acostaba,Te acostabas,Se acostaba,Nos acostábamos,Se acostaban
+To go to bed,Acostarse,Regular,Acostando,"Reflexive, Stem Changing",Me acuesto,Te acuestas,Se acuesta,Nos acostamos,Se acuestan,"Reflexive, Regular",Me acosté,Te acostaste,Se acostó,Nos acostamos,Se acostaron,"Reflexive, Regular",Me acostaba,Te acostabas,Se acostaba,Nos acostábamos,Se acostaban
To happen,Pasar,Regular,Pasando,Regular,Paso,Pasas,Pasa,Pasamos,Pasan,Regular,Pasé,Pasaste,Pasó,Pasamos,Pasaron,Regular,Pasaba,Pasabas,Pasaba,Pasábamos,Pasaban
To have,Tener,Regular,Teniendo,"Irregular, Stem Changing",Tengo,Tienes,Tiene,Tenemos,Tienen,Irregular,Tuve,Tuviste,Tuvo,Tuvimos,Tuvieron,Regular,Tenía,Tenías,Tenía,Teníamos,Tenían
To know,Saber,Regular,Sabiendo,Irregular,Sé,Sabes,Sabe,Sabemos,Saben,Irregular,Supe,Supiste,Supo,Supimos,Supieron,Regular,Sabía,Sabías,Sabía,Sabíamos,Sabían
@@ -75,7 +75,7 @@ To teach,Enseñar,Regular,Enseñando,Regular,Enseño,Enseñas,Enseña,Enseñamos
To tell,Decir,Stem Changing,Diciendo,"Irregular, Stem Changing",Digo,Dices,Dice,Decimos,Dicen,Irregular,Dije,Dijiste,Dijo,Dijimos,Dijeron,Regular,Decía,Decías,Decía,Decíamos,Decían
To touch,Tocar,Regular,Tocando,Regular,Toco,Tocas,Toca,Tocamos,Tocan,Orthographic,Toqué,Tocaste,Tocó,Tocamos,Tocaron,Regular,Tocaba,Tocabas,Tocaba,Tocábamos,Tocaban
To understand,Entender,Regular,Entendiendo,Stem Changing,Entiendo,Entiendes,Entiende,Entendemos,Entienden,Regular,Entendí,Entendiste,Entendió,Entendimos,Entendieron,Regular,Entendía,Entendías,Entendía,Entendíamos,Entendían
-To wake up,Despertarse,Regular,Despertando,Stem Changing,Me despierto,Te despiertas,Se despierta,Nos despertamos,Se despiertan,Regular,Me desperté,Te despertaste,Se despertó,Nos despertamos,Se despertaron,Regular,Me despertaba,Te despertabas,Se despertaba,Nos despertábamos,Se despertaban
+To wake up,Despertarse,Regular,Despertando,"Reflexive, Stem Changing",Me despierto,Te despiertas,Se despierta,Nos despertamos,Se despiertan,"Reflexive, Regular",Me desperté,Te despertaste,Se despertó,Nos despertamos,Se despertaron,"Reflexive, Regular",Me despertaba,Te despertabas,Se despertaba,Nos despertábamos,Se despertaban
To walk,Caminar,Regular,Caminando,Regular,Camino,Caminas,Camina,Caminamos,Caminan,Regular,Caminé,Caminaste,Caminó,Caminamos,Caminaron,Regular,Caminaba,Caminabas,Caminaba,Caminábamos,Caminaban
To want,Querer,Regular,Queriendo,Stem Changing,Quiero,Quieres,Quiere,Queremos,Quieren,Irregular,Quise,Quisiste,Quiso,Quisimos,Quisieron,Regular,Quería,Querías,Quería,Queríamos,Querían
To wash,Lavar,Regular,Lavando,Regular,Lavo,Lavas,Lava,Lavamos,Lavan,Regular,Lavé,Lavaste,Lavó,Lavamos,Lavaron,Regular,Lavaba,Lavabas,Lavaba,Lavábamos,Lavaban
diff --git a/index.html b/index.html
@@ -55,6 +55,7 @@
</select>
<select id="verbFilterType">
<option>All Types</option>
+ <option>Reflexive</option>
<option>Regular</option>
<option>Nonregular</option>
<option>Stem Changing</option>