<!--
{
  "availability" : [
    "iOS: 5.0.0 - 27.0.0",
    "iPadOS: 5.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.7.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 2.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSLinguisticTagger/init(tagSchemes:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLinguisticTagger(im)initWithTagSchemes:options:"
  },
  "title" : "init(tagSchemes:options:)"
}
-->

# init(tagSchemes:options:)

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

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

## Parameters

`tagSchemes`

An array of tag schemes to be used. See [`NSLinguisticTagScheme`](/documentation/Foundation/NSLinguisticTagScheme) for the possible values.

`opts`

Reserved for future use. Specify `0` for this parameter.

## Return Value

An initialized linguistic tagger.

## 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

[`NSLinguisticTagScheme`](/documentation/Foundation/NSLinguisticTagScheme)

Constants for the tag schemes specified when initializing a linguistic tagger.



---

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)