---
title: language
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nslinguistictagscheme/language
---

# language

Supplies the language for a token, if one can be determined.

## Declaration

```swift
static let language: NSLinguisticTagScheme
```

## Discussion

Discussion Each value for this tag scheme is a BCP-47 language identifier. For example, the language identifier for English is “en” and the identifier for Chinese written using the Simplified Chinese script is “zh-Hans”. The identifier “und” is used if a specific language cannot be determined. 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.

## See Also

### Schemes

- [tokenType](foundation/nslinguistictagscheme/tokentype.md)
- [lexicalClass](foundation/nslinguistictagscheme/lexicalclass.md)
- [nameType](foundation/nslinguistictagscheme/nametype.md)
- [nameTypeOrLexicalClass](foundation/nslinguistictagscheme/nametypeorlexicalclass.md)
- [lemma](foundation/nslinguistictagscheme/lemma.md)
- [script](foundation/nslinguistictagscheme/script.md)
