[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.)

# :test_tube:{ title="Experimental" } <code class="doc-symbol doc-symbol-annotation"></code> `Category` {#safeds.lang.Category data-toc-label='[annotation] Category'}

The category of a declaration. It can be used for grouping.

**Parameters:**

| Name | Type | Description | Default |
|------|------|-------------|---------|
| `category` | [`DataScienceCategory`][safeds.lang.DataScienceCategory] | - | - |

**Targets:**

- `Class`
- `Enum`
- `Function`
- `Segment`

??? quote "Stub code in `ideIntegration.sdsstub`"

    ```sds linenums="20"
    annotation Category(category: DataScienceCategory)
    ```
    { data-search-exclude }
