---
title: "availableTagSchemes(for:language:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nslinguistictagger/availabletagschemes(for:language:)"
---

# availableTagSchemes(for:language:)

Returns the tag schemes available for a particular unit and language on the current device.

## Declaration

```swift
class func availableTagSchemes(for unit: NSLinguisticTaggerUnit, language: String) -> [NSLinguisticTagScheme]
```

## Parameters

- `unit`: The linguistic unit. For possible values, see doc://com.apple.foundation/documentation/Foundation/NSLinguisticTaggerUnit.
- `language`: A BCP-47 tag identifying the language. For example, “en” for English or “zh-Hans” for Chinese written using the Simplified Chinese script.

## Return Value

Return Value The supported tag schemes. For possible values, see NSLinguisticTagScheme.

## See Also

### Getting the Tag Schemes

- [availableTagSchemes(forLanguage:)](foundation/nslinguistictagger/availabletagschemes(forlanguage:).md)
- [tagSchemes](foundation/nslinguistictagger/tagschemes.md)
