Skip to content
Snippets Groups Projects
Commit 81b14fd8 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

only show valid determiner types

parent 1c899a48
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
let groups = [{lemmas: this.lemmas}] let groups = [{lemmas: this.lemmas}]
try { try {
if (this.lemmas[0].paradigm_info[0].tags[0] == "DET" && this.lemmas[0].paradigm_info[0].tags.length > 1) { if (this.lemmas[0].paradigm_info[0].tags[0] == "DET" && this.lemmas[0].paradigm_info[0].tags.length > 1) {
groups = [{description: this.$t('tags.'+this.lemmas[0].paradigm_info[0].tags[0], this.content_locale), pos_group: this.$t('determiner.' + this.lemmas[0].paradigm_info[0].tags[1], this.content_locale), lemmas: this.lemmas}] groups = [{description: this.$t('tags.'+this.lemmas[0].paradigm_info[0].tags[0], this.content_locale), pos_group: ["Quant", "Dem", "Pos"].includes(this.lemmas[0].paradigm_info[0].tags[1]) ? this.$t('determiner.' + this.lemmas[0].paradigm_info[0].tags[1], this.content_locale) : '', lemmas: this.lemmas}]
} }
else if (this.lemmas[0].paradigm_info[0].tags[0] == 'NOUN') { else if (this.lemmas[0].paradigm_info[0].tags[0] == 'NOUN') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment