---
title: "linguisticTags(in:scheme:options:orthography:tokenRanges:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/stringprotocol/linguistictags(in:scheme:options:orthography:tokenranges:)"
---

# linguisticTags(in:scheme:options:orthography:tokenRanges:)

Returns an array of linguistic tags for the specified range and requested tags within the receiving string.

## Declaration

```swift
func linguisticTags<T, R>(in range: R, scheme tagScheme: T, options opts: NSLinguisticTagger.Options = [], orthography: NSOrthography? = nil, tokenRanges: UnsafeMutablePointer<[Range<Self.Index>]>? = nil) -> [String] where T : StringProtocol, R : RangeExpression, R.Bound == String.Index
```
