<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NaturalLanguage",
  "identifier" : "/documentation/NaturalLanguage/NLTagScheme/language",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Natural Language",
      "NaturalLanguage"
    ],
    "preciseIdentifier" : "c:@NLTagSchemeLanguage"
  },
  "title" : "language"
}
-->

# language

A scheme that supplies the language for a token, if it can determine one.

```
static let language: NLTagScheme
```

## Discussion

Each value for this tag scheme is listed in [`NLLanguage`](/documentation/NaturalLanguage/NLLanguage).

The tagger generally attempts to determine the language of text at the level of an entire sentence, paragraph, or document, rather than word by word.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)