---
title: NSGrammarRange
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nsgrammarrange
---

# NSGrammarRange

The value for the NSGrammarRange dictionary key should be an NSValue containing an NSRange, a subrange of the sentence range used as the return value, whose location should be an offset from the beginning of the sentence–so, for example, an NSGrammarRange for the first four characters of the overall sentence range should be {0, 4}. If the NSGrammarRange key is not present in the dictionary it is assumed to be equal to the overall sentence range.

## Declaration

```swift
let NSGrammarRange: String
```

## See Also

### Constants

- [NSGrammarUserDescription](foundation/nsgrammaruserdescription.md)
- [NSGrammarCorrections](foundation/nsgrammarcorrections.md)
