---
title: "label(for:)"
framework: naturallanguage
role: symbol
role_heading: Instance Method
path: "naturallanguage/nlgazetteer/label(for:)"
---

# label(for:)

Retrieves the label for the given term.

## Declaration

```swift
func label(for string: String) -> String?
```

## Parameters

- `string`: The term used to find a label.

## Return Value

Return Value A string if the term is in the vocabulary; otherwise nil.
