All the Q & A’s are queries that work on the ae_emuDB
that comes with the emuR package:
course_data_dir = "./myEMURdata" # change to valid dir path on your system
library(emuR)
create_emuRdemoData(course_data_dir)
db = load_emuDB(file.path(course_data_dir, "emuR_demoData", "ae_emuDB"),
verbose = F)
Q & A’s
Simple queries
Please place your answers in the R Markdown code blocks or write the answers next to the A:
- Q: What is the query to retrieve all items containing the label “n” in the “Phonetic” level?
- A:
# place answer code here
- Q: What is the query to retrieve all items that do not contain the label “n” or “p”?
- A:
# place answer code here
- Q: What is the query to retrieve all items in the “Word” level?
- A:
# place answer code here
Sequence queries
- Q: What is the query to retrieve all sequences of items containing the label “E” followed by items containing the label “n” on the “Phonetic” level?
- A:
# place answer code here
- Q: Same as the question above but this time we are only interested in the items containing the label “E” in the sequences.
- A:
# place answer code here
- Q: Same as the question above but this time we are only interested in the items containing the label “n” in the sequences.
- A:
# place answer code here
- Q: What is the query to retrieve all sequences of items containing the labels “amongst”, “her” and “friends” on the “Text” attribute of the “Word” level?
- A:
# place answer code here
- Q: What is the query to retrieve all items of the “Text” attribute of the “Word” level that preceed the word “to”?
- A:
# place answer code here
Conjunction operator
- Q: What is the query to retrieve all items containing the label “always” in the “Text” attribute definition which also have the label “C” on a parallel attribute definition called “Word”?
- A:
# place answer code here
- Q: What is the query to retrieve all items of the attribute definition “Text” of the level “Word” that were also labeled as content words (labeled “C” in the “Word” level) and as accented (labeled “S” in the attribute definition “Accent” of the same level)?
- A:
# place answer code here
Domination operator
- Q: What is the query to retrieve all items containing the label “p” in the “Phoneme” level that occur in strong syllables (i.e., dominated by/linked to items of the level “Syllable” that contain the label “S”)?
- A:
# place answer code here
- Q: What is the query to retrieve all syllable items that have links to Phoneme items that are not labeled “k” or “p” or “t”?
- A:
# place answer code here
- Q: What is the query to retrieve all items on the “Phonetic” level that are part of a strong syllable (labeled “S”) and belong to the words “amongst” or “beautiful”?
- A:
# place answer code here
- Q: The same as the question above but this time we want the “Text” items.
- A:
# place answer code here
Position
- Q: What is the query to retrieve all word-initial syllables?
- A:
# place answer code here
- Q: What is the query to retrieve all word-final syllables?
- A:
# place answer code here
- Q: What is the query to retrieve all word-medial syllables?
- A:
# place answer code here
Count
- Q: What is the query to retrieve all words that contain four syllables?
- A:
# place answer code here
Combining everything
- Q: What is the query to retrieve all phonemes which do not occur in the last syllable of the word?
- A:
# place answer code here
- Q: What is the query to retrieve all words containing syllables which contain four phonemes?
- A:
# place answer code here
- Q: What is the query to retrieve all “S” syllables, containing an “s” phoneme and preceding an “S” syllable?
- A:
# place answer code here
- Q: What is the query to retrieve all “H” phonetic segments followed by an arbitrary segment and then by either “I” or “U”?
- A:
# place answer code here
- Q: What is the query to retrieve “W” (weak) syllables in word-final position occurring in three-syllable words?
- A:
# place answer code here