diff --git a/src/content/verbs/SwitchPlayground.tsx b/src/content/verbs/SwitchPlayground.tsx deleted file mode 100644 index 0fdff80..0000000 --- a/src/content/verbs/SwitchPlayground.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import { useState } from "react"; -import { tenseData } from "./tense-data"; -import Media from "react-media"; - -function SwitchPlayground() { - const [state, setState] = useState<[boolean, boolean, boolean]>([false, false, false]); - const makeToggle = (i: 0|1|2) => () => setState(os => { - const ns = [...os] as [boolean, boolean, boolean]; - ns[i] = !ns[i]; - return ns; - }); - const [form] = tenseData.find(([t, ...switches]) => { - return JSON.stringify(state) === JSON.stringify(switches); - }) as ["string"]; - return
form | +Has 'ba' | +Imperfective / Perfective | +Stem / Root | +
---|---|---|---|
{t[0]} | +{t[1] ? "yes" : "no"} | +
+ {t[2] ? (
+
+
+ {` `}imperfective
+
+ ) : (
+
+
+ )}
+ |
+ {t[3] ? "root" : "stem"} | +
Hit the switches to try the combinations yourself!
+Imperfective | -+ Imperfective + | +
+ |
|
---|---|---|---|
- Present
-
- imperfective stem + present ending
-
- |
-
- Subjunctive
-
- perfective stem + present ending
-
- |
+
+ Present
+
+ imperfective stem + present ending
+
+ |
+
+ Subjunctive
+
+ perfective stem + present ending
+
+ |
- Imperfective Future
-
- ba + Present
-
- |
-
- Perfective Future
-
- ba + Subjunctive
-
- |
+
+ Imperfective Future
+
+ ba + Present
+
+ |
+
+ Perfective Future
+
+ ba + Subjunctive
+
+ |
- Continuous Past
-
- imperfective root + past ending
-
- |
-
- Simple Past
-
- perfective root + past ending
-
- |
+
+ Continuous Past
+
+ imperfective root + past ending
+
+ |
+
+ Simple Past
+
+ perfective root + past ending
+
+ |
- Habitual Continuous Past
-
- ba + Continuous Past
-
- |
-
- Habitual Simple Past
-
- ba + Simple Past
-
- |
+
+ Habitual Continuous Past
+
+ ba + Continuous Past
+
+ |
+
+ Habitual Simple Past
+
+ ba + Simple Past
+
+ |
- 2 x 2 x 2 = 8 verb forms + 2 x 2 x 2 = 8 verb forms
Here's a chart of every possible combination of these choices, giving us all the basic verb forms: -form | -Has 'ba' | -Imperfective / Perfective | -Stem / Root | -
---|---|---|---|
{t[0]} | -{t[1] ? "yes" : "no"} | -{t[2] ? {` `}imperfective : |
- {t[3] ? "root" : "stem"} | -
- | Imperfective | -+ | + Imperfective + | +
+ |
|
---|---|---|---|---|---|
Pos. | -
- Imperfective Imperative
-
- imperfective stem + imperative ending
-
- |
-
- Perfective Imperative
-
- perfective stem + imperative ending
-
- |
+ Pos. | +
+ Imperfective Imperative
+
+ imperfective stem + imperative ending
+
+ |
+
+ Perfective Imperative
+
+ perfective stem + imperative ending
+
+ |
Neg. | -
- Negative Imperative
-
- مه - mú + imperfective stem + imperative ending
-
- |
+ Neg. | +
+ Negative Imperative
+
+ مه - mú + imperfective stem + imperative ending
+
+ |