Skip to content

Commit

Permalink
start including raw tags, and french tort tag (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 authored May 16, 2024
1 parent e5f4fd3 commit e6ee0e7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
3 changes: 3 additions & 0 deletions 3-tidy-up.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ function handleLine(line) {

const formOf = sense.form_of;
const tags = sense.tags || [];
if(sense.raw_tags && Array.isArray(sense.raw_tags)) {
tags.push(...sense.raw_tags);
}

if (glossesArray.length > 0) {
if (!isInflectionGloss(glossesArray, formOf)) {
Expand Down
9 changes: 9 additions & 0 deletions data/language/target-language-tags/fr/tag_bank_term.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
[
"tort",
"",
0,
"Utilisé à tort",
0
]
]
10 changes: 9 additions & 1 deletion data/test/dict/fr/fr/tag_bank_1.json
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
[]
[
[
"tort",
"",
0,
"Utilisé à tort",
0
]
]
13 changes: 12 additions & 1 deletion data/test/dict/fr/fr/term_bank_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@
0,
[
"Dans la religion hindouiste, chacune des incarnations du dieu Vishnou.",
"Métamorphose, transformation d’un objet ou d’un individu qui en a déjà subi plusieurs.",
"Métamorphose, transformation d’un objet ou d’un individu qui en a déjà subi plusieurs."
],
0,
""
],
[
"avatar",
"",
"tort",
"noun",
0,
[
"Mésaventure, malheur."
],
0,
Expand Down
7 changes: 5 additions & 2 deletions data/test/tidy/fr-fr-lemmas.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"glosses": [
"Dans la religion hindouiste, chacune des incarnations du dieu Vishnou."
],
"tags": []
"tags": [
"Hindouisme"
]
},
{
"glosses": [
Expand All @@ -28,7 +30,8 @@
"Mésaventure, malheur."
],
"tags": [
"broadly"
"broadly",
"Utilisé à tort"
]
}
]
Expand Down

0 comments on commit e6ee0e7

Please sign in to comment.