Skip to content

Commit

Permalink
grammar_analysis, move example files to json to simplify their use
Browse files Browse the repository at this point in the history
  • Loading branch information
Animtim committed Jul 24, 2023
1 parent 8d5bc15 commit b3ee641
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 231 deletions.
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -2271,6 +2271,10 @@ Files: src/activities/grammar_analysis/*.md
Copyright: 2023 Bruno Anselme
License: CC-BY-SA-4.0

Files: src/activities/grammar_analysis/examples/*.json
Copyright: 2023 Bruno Anselme
License: CC-BY-SA-4.0

Files: src/activities/grammar_analysis/resource/grammar_analysis-en.json
Copyright: 2023 Emmanuel Charruau
License: CC-BY-SA-4.0
Expand Down
107 changes: 107 additions & 0 deletions src/activities/grammar_analysis/examples/grammar_analysis-xx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"levels": [
{
"objective": "Find nouns, verbs and determinants.",
"difficulty": "1",
"exercise": "small",
"goal": "nou vrb dtm"
},
{
"objective": "Find these grammatical classes.",
"difficulty": "2",
"exercise": "medium",
"goal": "nou vrb adj adv dtm"
},
{
"objective": "Find these grammatical classes.",
"difficulty": "3",
"exercise": "large",
"goal": "nou dtm vrb adj adv ppt prn"
}
],
"dataset" : {
"small" : [
{ "sentence": "The flower is very pretty."
, "answer": "dtm nou vrb adv adj"
},
{ "sentence": "The cat makes its toilet."
, "answer": "dtm nou vrb dtm nou"
},
{ "sentence": "(Ding dong)! The doorbell rings."
, "answer": " itj dtm nou vrb"
}
],
"medium" : [
{ "sentence": "This vanilla cream smells very good."
, "answer": "dtm nou nou vrb adv adj"
},
{ "sentence": "The entrance to the college is inaccessible until further notice."
, "answer": "dtm nou ppt dtm nou vrb adj ppt adj nou"
},
{ "sentence": "The dog and the cat (are watching) the fish swim."
, "answer": "dtm nou cjt dtm nou vrb dtm nou vrb"
},
{ "sentence": "The magpie wanders on the balcony."
, "answer": "dtm nou vrb ppt dtm nou"
}
],
"large" : [
{ "sentence": "My parents work from home every day in their office."
, "answer": "dtm nou vrb ppt nou dtm nou ppt prn nou"
},
{ "sentence": "Now the children do their homework as a family in the (dining room)."
, "answer": "adv dtm nou vrb prn nou ppt ppt nou ppt dtm nou"
},
{ "sentence": "This dance (is called) the tango, grandma and grandpa often dance it at home."
, "answer": "dtm nou vrb dtm nou nou cjt nou adv vrb prn ppt nou"
}
]
},
"syntax" : [
{
"code": "nou",
"wordClass": "Noun",
"image": "1.svg"
},
{
"code": "dtm",
"wordClass": "Determiner",
"image": "2.svg"
},
{
"code": "adj",
"wordClass": "Adjective",
"image": "3.svg"
},
{
"code": "prn",
"wordClass": "Pronoun",
"image": "4.svg"
},
{
"code": "vrb",
"wordClass": "Verb",
"image": "5.svg"
},
{
"code": "adv",
"wordClass": "Adverb",
"image": "6.svg"
},
{
"code": "cjt",
"wordClass": "Conjunction",
"image": "7.svg"
},
{
"code": "ppt",
"wordClass": "Preposition",
"image": "8.svg"
},
{
"code": "itj",
"wordClass": "Interjection",
"image": "9.svg"
}
]
}
110 changes: 0 additions & 110 deletions src/activities/grammar_analysis/examples/grammar_analysis-xx.md

This file was deleted.

119 changes: 119 additions & 0 deletions src/activities/grammar_analysis/examples/grammar_classes-xx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"levels": [
{
"objective": "Find words.",
"difficulty": "1",
"exercise": "small",
"goal": "nou"
},
{
"objective": "Find verbs.",
"difficulty": "1",
"exercise": "medium",
"goal": "vrb"
},
{
"objective": "Find determinants.",
"difficulty": "2",
"exercise": "medium",
"goal": "dtm"
},
{
"objective": "Find adjectives.",
"difficulty": "3",
"exercise": "large",
"goal": "adj"
},
{
"objective": "Find adverbs.",
"difficulty": "4",
"exercise": "large",
"goal": "adv"
}
],
"dataset" : {
"small" : [
{ "sentence": "The flower is very pretty."
, "answer": "dtm nou vrb adv adj"
},
{ "sentence": "The cat makes its toilet."
, "answer": "dtm nou vrb dtm nou"
},
{ "sentence": "(Ding dong)! The doorbell rings."
, "answer": " itj dtm nou vrb"
}
],
"medium" : [
{ "sentence": "This vanilla cream smells very good."
, "answer": "dtm nou nou vrb adv adj"
},
{ "sentence": "The entrance to the college is inaccessible until further notice."
, "answer": "dtm nou ppt dtm nou vrb adj ppt adj nou"
},
{ "sentence": "The dog and the cat (are watching) the fish swim."
, "answer": "dtm nou cjt dtm nou vrb dtm nou vrb"
},
{ "sentence": "The magpie wanders on the balcony."
, "answer": "dtm nou vrb ppt dtm nou"
}
],
"large" : [
{ "sentence": "My parents work from home every day in their office."
, "answer": "dtm nou vrb ppt nou dtm nou ppt prn nou"
},
{ "sentence": "Now the children do their homework as a family in the (dining room)."
, "answer": "adv dtm nou vrb prn nou ppt ppt nou ppt dtm nou"
},
{ "sentence": "This dance (is called) the tango, grandma and grandpa often dance it at home."
, "answer": "dtm nou vrb dtm nou nou cjt nou adv vrb prn ppt nou"
}
]
},
"syntax" : [
{
"code": "nou",
"wordClass": "Noun",
"image": "1.svg"
},
{
"code": "dtm",
"wordClass": "Determiner",
"image": "2.svg"
},
{
"code": "adj",
"wordClass": "Adjective",
"image": "3.svg"
},
{
"code": "prn",
"wordClass": "Pronoun",
"image": "4.svg"
},
{
"code": "vrb",
"wordClass": "Verb",
"image": "5.svg"
},
{
"code": "adv",
"wordClass": "Adverb",
"image": "6.svg"
},
{
"code": "cjt",
"wordClass": "Conjunction",
"image": "7.svg"
},
{
"code": "ppt",
"wordClass": "Preposition",
"image": "8.svg"
},
{
"code": "itj",
"wordClass": "Interjection",
"image": "9.svg"
}
]
}
Loading

0 comments on commit b3ee641

Please sign in to comment.