# Twigmark: how matching works

The annexes are prose tables. At refresh time each row is turned into structure; at query time nothing is parsed.

## Plant

- named: the genus, or genus and species, is named in the description (read from the italic Latin names in the official text).
- family: the description names a family, such as Solanaceae, and the GBIF backbone lists the genus in it.
- general: the row names no plant and applies by commodity, such as 'Plants for planting, other than seeds'. Only returned when commodity or a fitting CN code is given.
- other_species: you gave a genus and the row names particular species of it; check yours.
- A genus or species in an 'other than' clause is excluded, so 'Plants of Poaceae, other than ... Molinia' does not match Molinia.

## Origin

- applies: the country is named, is in a named group (EU member states, the Americas, non-European countries), or the row covers all third countries without excepting it.
- conditional: it applies, but the text adds a condition such as 'where Bemisia tabaci is known to occur'. Read the condition.
- partial: only part of the country is named (for example parts of Russia). Read the text.
- check: the origin is a region this service does not resolve to countries, such as 'the African continent'. Read the text.
- Rows whose origin excludes the country are left out and counted in skipped.origin_excluded.

## Commodity and CN code

- Each row's description is read for the kinds it covers (plants for planting, plants, fruit, cut flowers, foliage, seeds, wood, bark and so on) and those its 'other than' clauses carve out ('other than fruit and seeds').
- EU rows carry CN codes; with cn_code, a row is kept when one of its codes is a prefix of yours or yours of it. GB Annex 7 has no CN column.

## Not covered

- Emergency measures adopted as separate acts, the EU high-risk plants list (Regulation (EU) 2018/2019), protected zones (Annexes VIII and X), plant passports, GB licences, Northern Ireland, and the decision of a border control post.
- Not phytosanitary advice. The exporting country's plant protection organisation certifies, and the border control post of the importing country decides; its decision is final.