---
title: "Apply rule-based pattern matching"
method: GET
path: "/api/nlp/patterns/{id}"
tags: ["nlp"]
---

# Apply rule-based pattern matching

`GET /api/nlp/patterns/{id}`

Use rule-based pattern matching to find entities in a document

## Path parameters

- `id` string, required

## Query parameters

- `lang` string
- `debug` boolean

## Response `200`

JSON structure listing the entities found

- object

## Changes

- **2021-12-21** `770d6cdd7401` — 1 info
  - endpoint added
- **2020-10-14** `b70359972942` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/changes/api/nlp/patterns/:id/get.md)

---

[API](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo.md) · [All operations](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eeditiones/tei-publisher-documentation-and-demo/revisions/07216792837f/schema)
