NSOrthography class describes the linguistic content of a piece of text, typically used for the purposes of spelling and grammar checking.
- iOS 4.0+
- macOS 10.6+
- tvOS 9.0+
- watchOS 2.0+
NSOrthography instance describes:
Which scripts the text contains.
A dominant language and possibly other languages for each of these scripts.
A dominant script and language for the text as a whole.
Scripts are uniformly described by standard four-letter tags (
Cyrl, etc.) with the supertags
Kore typically used for Japanese and Korean text,
Hant for Chinese text; the tag
Zyyy is used if a specific script cannot be identified. See Internationalization and Localization Guide for more information on internationalization.
Languages are uniformly described by BCP-47 tags , preferably in canonical form; the tag
und is used if a specific language cannot be determined.