forked from gcompris/GCompris-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grammar_analysis, move example files to json to simplify their use
- Loading branch information
Showing
5 changed files
with
230 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
src/activities/grammar_analysis/examples/grammar_analysis-xx.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
110
src/activities/grammar_analysis/examples/grammar_analysis-xx.md
This file was deleted.
Oops, something went wrong.
119 changes: 119 additions & 0 deletions
119
src/activities/grammar_analysis/examples/grammar_classes-xx.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
Oops, something went wrong.