---
title: "enumerateLinguisticTags(in:scheme:options:orthography:invoking:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/stringprotocol/enumeratelinguistictags(in:scheme:options:orthography:invoking:)"
---

# enumerateLinguisticTags(in:scheme:options:orthography:invoking:)

Performs linguistic analysis on the specified string by enumerating the specific range of the string, providing the Block with the located tags.

## Declaration

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