---
title: "init(tagSchemes:options:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nslinguistictagger/init(tagschemes:options:)"
---

# init(tagSchemes:options:)

Creates a linguistic tagger instance using the specified tag schemes and options.

## Declaration

```swift
init(tagSchemes: [NSLinguisticTagScheme], options opts: Int)
```

## Parameters

- `tagSchemes`: An array of tag schemes to be used. See doc://com.apple.foundation/documentation/Foundation/NSLinguisticTagScheme for the possible values.
- `opts`: Reserved for future use. Specify 0 for this parameter.

## Return Value

Return Value An initialized linguistic tagger.

## Discussion

Discussion Pass any tag schemes to tagSchemes that you intend to use with the methods described in Enumerating Linguistic Tags and Getting Linguistic Tags. tip: Avoid specifying tag schemes that you won’t use to ensure optimal performance.

## See Also

### Related Documentation

- [NSLinguisticTagScheme](foundation/nslinguistictagscheme.md)

### First Steps

- [Tokenizing Natural Language Text](foundation/tokenizing-natural-language-text.md)
- [string](foundation/nslinguistictagger/string.md)
