mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(pronouns) add option to mark examples as comprehensive
This commit is contained in:
parent
d19fe78909
commit
8fc3dca3fb
@ -1,9 +1,9 @@
|
||||
singular plural isHonorific
|
||||
{'pronoun_n} ist so süß. {pronoun_n} sind so süß. FALSE
|
||||
Ist das {possessive_m_n} Hund? FALSE
|
||||
Heute hat {pronoun_n} {possessive_m_a} Apfel, {possessive_f_a} Birne und {possessive_n_a} Törtchen dabei. Heute haben {pronoun_n} {possessive_m_a} Apfel, {possessive_f_a} Birne und {possessive_n_a} Törtchen dabei. FALSE
|
||||
{'possessive_n_n} Kaninchen spielt mit {possessive_m_d} Hund. FALSE
|
||||
Meine Lieblingsfarbe ist violett, {possessive_f_n} ist gelb. FALSE
|
||||
Wir freuen uns {pronoun_g}. FALSE
|
||||
Ich bin {pronoun_d} erst kürzlich begegnet. FALSE
|
||||
Ich verstehe {pronoun_a} so gut. FALSE
|
||||
singular plural isHonorific comprehensive
|
||||
{'pronoun_n} ist so süß. {pronoun_n} sind so süß. FALSE FALSE
|
||||
Ist das {possessive_m_n} Hund? FALSE FALSE
|
||||
Heute hat {pronoun_n} {possessive_m_a} Apfel, {possessive_f_a} Birne und {possessive_n_a} Törtchen dabei. Heute haben {pronoun_n} {possessive_m_a} Apfel, {possessive_f_a} Birne und {possessive_n_a} Törtchen dabei. FALSE TRUE
|
||||
{'possessive_n_n} Kaninchen spielt mit {possessive_m_d} Hund. FALSE TRUE
|
||||
Meine Lieblingsfarbe ist violett, {possessive_f_n} ist gelb. FALSE TRUE
|
||||
Wir freuen uns {pronoun_g}. FALSE TRUE
|
||||
Ich bin {pronoun_d} erst kürzlich begegnet. FALSE FALSE
|
||||
Ich verstehe {pronoun_a} so gut. FALSE FALSE
|
||||
|
|
@ -52,7 +52,7 @@
|
||||
</h2>
|
||||
|
||||
<ul>
|
||||
<li v-for="example in examples" v-if="example.requiredMorphemesPresent(selectedPronoun, counter)" class="my-1">
|
||||
<li v-for="example in examples" v-if="example.requiredMorphemesPresent(selectedPronoun, counter) && (!example.comprehensive || comprehensive)" class="my-1">
|
||||
<Example :example="example" :pronoun="selectedPronoun" :counter="counter" pronunciation/>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -84,7 +84,7 @@
|
||||
</p>
|
||||
<template v-for="isHonorific in [false, true]" v-if="examples.filter(e => e.isHonorific === isHonorific).length">
|
||||
<ul>
|
||||
<li v-for="example in examples" v-if="example.isHonorific === isHonorific">
|
||||
<li v-for="example in examples" v-if="example.isHonorific === isHonorific && !example.comprehensive">
|
||||
<span v-for="part in clearExampleParts(example.parts(selectedPronoun))">
|
||||
<input v-if="part.variable" v-model="selectedPronoun.morphemes[part.str]"
|
||||
:class="['form-control form-input p-0', {'active': selectedMorpheme === part.str}]"
|
||||
|
@ -11,10 +11,11 @@ export class ExamplePart {
|
||||
}
|
||||
|
||||
export class Example {
|
||||
constructor(singularParts, pluralParts, isHonorific = false) {
|
||||
constructor(singularParts, pluralParts, isHonorific = false, comprehensive = false) {
|
||||
this.singularParts = singularParts;
|
||||
this.pluralParts = pluralParts;
|
||||
this.isHonorific = isHonorific;
|
||||
this.comprehensive = comprehensive;
|
||||
}
|
||||
|
||||
static parse(str) {
|
||||
|
@ -12,6 +12,7 @@ export const examples = buildList(function* () {
|
||||
Example.parse(e.singular),
|
||||
Example.parse(e.plural || e.singular),
|
||||
e.isHonorific,
|
||||
e.comprehensive || false,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user