Session Ready
Exercise

Writing match patterns

In this exercise, you'll practice writing more complex match patterns using different token attributes and operators. A matcher is already initialized and available as the variable matcher.

Instructions 1/3
undefined XP
  • 1
    • Write one pattern that only matches mentions of the full iOS versions: "iOS 7", "iOS 11" and "iOS 10".
    • 2
      • Write one pattern that only matches forms of "download" (tokens with the lemma "download"), followed by a token with the part-of-speech tag 'PROPN' (proper noun).
    • 3
      • Write one pattern that matches adjectives ('ADJ') followed by one or two 'NOUN's (one noun and one optional noun).