---
title: NSSpellChecker.OptionKey
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nsspellchecker/optionkey
---

# NSSpellChecker.OptionKey

Constants that define options for text checking.

## Declaration

```swift
struct OptionKey
```

## Overview

Overview The constants are optional keys that can be used in the options dictionary parameter of the check(_:range:types:options:inSpellDocumentWithTag:orthography:wordCount:), requestChecking(of:range:types:options:inSpellDocumentWithTag:completionHandler:), and menu(for:string:options:atLocation:in:) methods.

## Topics

### Spell Checker Options

- [documentAuthor](appkit/nsspellchecker/optionkey/documentauthor.md)
- [documentTitle](appkit/nsspellchecker/optionkey/documenttitle.md)
- [documentURL](appkit/nsspellchecker/optionkey/documenturl.md)
- [orthography](appkit/nsspellchecker/optionkey/orthography.md)
- [quotes](appkit/nsspellchecker/optionkey/quotes.md)
- [referenceDate](appkit/nsspellchecker/optionkey/referencedate.md)
- [referenceTimeZone](appkit/nsspellchecker/optionkey/referencetimezone.md)
- [regularExpressions](appkit/nsspellchecker/optionkey/regularexpressions.md)
- [replacements](appkit/nsspellchecker/optionkey/replacements.md)
- [selectedRange](appkit/nsspellchecker/optionkey/selectedrange.md)

### Initializers

- [init(rawValue:)](appkit/nsspellchecker/optionkey/init(rawvalue:).md)

### Type Properties

- [generateInlinePredictionsKey](appkit/nsspellchecker/optionkey/generateinlinepredictionskey.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Data Detector Interaction

- [menu(for:string:options:atLocation:in:)](appkit/nsspellchecker/menu(for:string:options:atlocation:in:).md)
