<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Speech",
  "identifier" : "/documentation/Speech/AnalysisContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Speech"
    ],
    "preciseIdentifier" : "s:6Speech15AnalysisContextC"
  },
  "title" : "AnalysisContext"
}
-->

# AnalysisContext

Contextual information that may be shared among analyzers.

```
final class AnalysisContext
```

## Topics

### Creating a context

[`init()`](/documentation/Speech/AnalysisContext/init())

### Providing textual context

[`contextualStrings`](/documentation/Speech/AnalysisContext/contextualStrings)

Words or phrases, grouped by tag, that should be recognized even if they are not in the system vocabulary.

[`AnalysisContext.ContextualStringsTag`](/documentation/Speech/AnalysisContext/ContextualStringsTag)

### Preserving app-specific context

[`userData`](/documentation/Speech/AnalysisContext/userData)

A dictionary of application-specific contextual information.

[`AnalysisContext.UserDataTag`](/documentation/Speech/AnalysisContext/UserDataTag)



---

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)