---
title: "setOrthography(_:range:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nslinguistictagger/setorthography(_:range:)"
---

# setOrthography(_:range:)

Sets the orthography for the specified range.

## Declaration

```swift
func setOrthography(_ orthography: NSOrthography?, range: NSRange)
```

## Parameters

- `orthography`: The orthography.
- `range`: The range.

## Discussion

Discussion If the orthography of the linguistic tagger is not set, it will determine it automatically from the contents of the text.  You should call this method only if you  know the orthography of the text by some other means.

## See Also

### Determining the Dominant Language and Orthography

- [dominantLanguage(for:)](foundation/nslinguistictagger/dominantlanguage(for:).md)
- [dominantLanguage](foundation/nslinguistictagger/dominantlanguage.md)
- [orthography(at:effectiveRange:)](foundation/nslinguistictagger/orthography(at:effectiverange:).md)
