# NOT RUN {
# In the examples below, non-ASCII characters had to be escaped for technical reasons.
# In the actual usage, Unicode is supported under BSD, Linux, and macOS.
dataset <- sampleSoundCorrsData.capitals
# Find examples which have "a" in all three languages.
findExamples (dataset, "a", "a", "a")
# Find examples where German has schwa, and Polish and Spanish have a Vr sequence.
findExamples (dataset, "\u0259", "Vr", "Vr")
# Find examples where German has a-umlaut, Polish has a or e, and Spanish has any sound at all.
findExamples (dataset, "\u00E4", "[ae]", "")
# Find examples where German has a linguistic zero while Polish and Spanish do not.
findExamples (dataset, "-", "[^-]", "[^-]", zeros=TRUE)
# Find examples where German has schwa, and Polish and Spanish have a.
findExamples (dataset, "\u0259", "a", "a", distance.start=-1, distance.end=-1)
# As above, but the schwa and the two a's must be in the same segment.
findExamples (dataset, "\u0259", "a", "a", distance.start=0, distance.end=0)
# }
Run the code above in your browser using DataLab