<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/TextReplacementReason/rejected",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWritingToolsCoordinatorTextReplacementReason@NSWritingToolsCoordinatorTextReplacementReasonRejected"
  },
  "title" : "NSWritingToolsCoordinator.TextReplacementReason.rejected"
}
-->

# NSWritingToolsCoordinator.TextReplacementReason.rejected

An option to replace the text in your view when a grammar suggestion
is rejected.

```
case rejected
```

## Discussion

When the user interacts with a grammar issue and the UI is shown,
and the option to ignore a suggestion is chosen, this reason will be
used. Update your view’s text storage without animating the change.
In addition, use `ignoreGrammarRange` on [`NSSpellChecker`](/documentation/AppKit/NSSpellChecker)
to make sure that the suggestion will continue to be ignored.

---

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)