cqp:repetition-operators-solutions
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cqp:repetition-operators-solutions [2024/06/13 21:20] – created aamoakuh | cqp:repetition-operators-solutions [2024/07/08 15:58] (current) – add %% to code in [Exercise 3: Matching different word forms] aamoakuh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | **[ [[cqp: | ||
| + | ===== Querying with Repetition Operators – Solutions ===== | ||
| + | |||
| + | ==== Exercise 1: Prefixation ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== Exercise 2: Prefix- and Suffixation ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== Exercise 3: Matching different word forms ==== | ||
| + | |||
| + | Note that these are not the only possible solutions. | ||
| + | |||
| + | 1. | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | 2. | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== Exercise 4: Collocation ==== | ||
| + | |||
| + | For longer queries with optional empty slots in between, you can run the risk of matching punctuation in the empty slot. To avoid this, '' | ||
| + | |||
| + | Query for //change//: | ||
| + | '' | ||
| + | |||
| + | First ten entries of the frequency list for //change//: | ||
| + | |||
| + | 54 mind | ||
| + | 22 time | ||
| + | 16 way | ||
| + | 15 policy | ||
| + | 15 subject | ||
| + | 13 attitude | ||
| + | 13 direction | ||
| + | 13 hand | ||
| + | 13 nappy | ||
| + | 12 agent | ||
| + | 12 condition | ||
| + | |||
| + | Query for // | ||
| + | |||
| + | First ten entries of the frequency list for //alter//: | ||
| + | |||
| + | 4 behaviour | ||
| + | 3 context | ||
| + | 2 child | ||
| + | 2 environment | ||
| + | 2 view | ||
| + | 1 arrival | ||
| + | 1 bath | ||
| + | 1 bunny | ||
| + | 1 cabinet | ||
| + | 1 chain | ||
| + | 1 chemistry | ||
| + | 1 christening | ||
| + | 1 clock | ||
| + | |||
| + | ==== More practice? ==== | ||
| + | |||
| + | Continue here: [[cqp: | ||
