From 186917daaf4fedde2419d5f20fb63096cfc0906a Mon Sep 17 00:00:00 2001 From: Jim Bennett Date: Tue, 6 Jul 2021 18:52:00 -0700 Subject: [PATCH] Lesson 24 quiz --- .../4-multiple-language-support/README.md | 2 +- quiz-app/src/assets/translations/en.json | 114 +++++++++++++++++- 2 files changed, 111 insertions(+), 5 deletions(-) diff --git a/6-consumer/lessons/4-multiple-language-support/README.md b/6-consumer/lessons/4-multiple-language-support/README.md index 09f42a9c..45e84c85 100644 --- a/6-consumer/lessons/4-multiple-language-support/README.md +++ b/6-consumer/lessons/4-multiple-language-support/README.md @@ -44,7 +44,7 @@ For example, translating "Hello world" from English into French can be performed Substitutions don't work when different languages use different ways of saying the same thing. For example, the English sentence "My name is Jim", translates into "Je m'appelle Jim" in French - literally "I call myself Jim". "Je" is French for "I", "moi" is me, but is concatenated with the verb as it starts with a vowel, so becomes "m'", "appelle" is to call, and "Jim" isn't translated as it's a name, and not a word that can be translated. Word ordering also becomes an issue - a simple substitution of "Je m'appelle Jim" becomes "I myself call Jim", with a different word order to English. -> 💁 Some words are never translated - my name is Jim regardless of which language is used to introduce me. +> 💁 Some words are never translated - my name is Jim regardless of which language is used to introduce me. When translating to languages that use different alphabets, or use different letters for different sounds, then words can be *transliterated*, that is selecting letters or characters that give the appropriate sound to sound the same as the given word. Idioms are also a problem for translation. These are phrases that have an understood meaning that is different from a direct interpretation of the words. For example, in English the idiom "I've got ants in my pants" does not literally refer to having ants in your clothing, but to being restless. If you translated this to German, you would end up confusing the listener, as the German version is "I have bumble bees in the bottom". diff --git a/quiz-app/src/assets/translations/en.json b/quiz-app/src/assets/translations/en.json index 78d8bf36..28c17c9a 100644 --- a/quiz-app/src/assets/translations/en.json +++ b/quiz-app/src/assets/translations/en.json @@ -2164,14 +2164,18 @@ ] }, { - "questionText": "Language understanding only understands English:", + "questionText": "Language understanding involves:", "answerOptions": [ { - "answerText": "True", + "answerText": "Looking at the individual words in a sentence and trying to get the meaning", "isCorrect": "false" }, { - "answerText": "False", + "answerText": "Finding pre-defined sentences and using those to get the meaning", + "isCorrect": "false" + }, + { + "answerText": "Looking at the whole sentence and trying to get the meaning using the context of the words", "isCorrect": "true" } ] @@ -2290,7 +2294,7 @@ "isCorrect": "false" }, { - "answerText": "It depends on the context", + "answerText": "It can be 'one two three four' or 'one thousand two hundred and thirty four' depending on the context", "isCorrect": "true" } ] @@ -2349,6 +2353,108 @@ ] } ] + }, + { + "id": 47, + "title": "Lesson 24 - Support multiple languages: Pre-Lecture Quiz", + "quiz": [ + { + "questionText": "Language understanding only understands English:", + "answerOptions": [ + { + "answerText": "True", + "isCorrect": "false" + }, + { + "answerText": "False", + "isCorrect": "true" + } + ] + }, + { + "questionText": "AI speech to text models understand multiple languages:", + "answerOptions": [ + { + "answerText": "True", + "isCorrect": "true" + }, + { + "answerText": "False", + "isCorrect": "false" + } + ] + }, + { + "questionText": "AI translation involves swapping individual words for their translated version:", + "answerOptions": [ + { + "answerText": "True", + "isCorrect": "false" + }, + { + "answerText": "false", + "isCorrect": "true" + } + ] + } + ] + }, + { + "id": 48, + "title": "Lesson 24 - Support multiple languages: Post-Lecture Quiz", + "quiz": [ + { + "questionText": "Machine translation has been researched for nearly:", + "answerOptions": [ + { + "answerText": "70 years", + "isCorrect": "true" + }, + { + "answerText": "17 years", + "isCorrect": "false" + }, + { + "answerText": "7 years", + "isCorrect": "false" + } + ] + }, + { + "questionText": "AI language translators are called:", + "answerOptions": [ + { + "answerText": "Noddy translators", + "isCorrect": "false" + }, + { + "answerText": "Neural translators", + "isCorrect": "true" + }, + { + "answerText": "Nothing - AI cannot be used for translation", + "isCorrect": "false" + } + ] + }, + { + "questionText": "What alien languages does the Microsoft translator support:", + "answerOptions": [ + { + "answerText": "Na'vi", + "isCorrect": "false" + }, + { + "answerText": "Alienese", + "isCorrect": "false" + }, + { + "answerText": "Klingon", + "isCorrect": "true" + } + ] + } + ] } ] }