Sets the orthography for the specified range.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
- Xcode 10.0+
Framework
- Natural Language
Declaration
@nonobjc func setOrthography(_ orthography: NSOrthography, range: Range<String.Index>)
Parameters
orthography
The orthography for the given range.
range
The range of the string that is being assigned an orthography.
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.