<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/StringProtocol/enumerateLinguisticTags(in:scheme:options:orthography:invoking:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Sy10FoundationE23enumerateLinguisticTags2in6scheme7options11orthography8invokingyqd_0__qd__So25NSLinguisticTaggerOptionsVSo13NSOrthographyCSgySS_SnySS5IndexVGAOSbztXEtSyRd__SXRd_0_AN5BoundRtd_0_r0_lF"
  },
  "title" : "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.

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

---

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)